leo/tests/compiler/records/owner_wrong_ty.leo

15 lines
215 B
Plaintext
Raw Normal View History

/*
namespace: Compile
expectation: Fail
*/
// This record does define the `owner` variable but with the wrong type.
record Token {
balance: u64,
owner: bool,
}
function main() -> bool {
return true;
}