leo/tests/compiler/records/duplicate_var_fail.leo

19 lines
346 B
Plaintext
Raw Normal View History

2022-06-28 05:59:06 +03:00
/*
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).
2022-07-08 02:15:11 +03:00
gates: u64,
2022-06-28 05:59:06 +03:00
// The token amount.
amount: u64,
}
function main() -> bool {
return true;
}