leo/tests/compiler/records/duplicate_var_fail.leo
2022-07-07 16:15:11 -07:00

19 lines
346 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
record Token {
// The token owner.
owner: address,
// The token owner.
owner: address, // Cannot define two record variables with the same name.
// The Aleo balance (in gates).
gates: u64,
// The token amount.
amount: u64,
}
function main() -> bool {
return true;
}