leo/tests/compiler/records/balance_wrong_ty.leo
2022-10-05 16:53:49 -07:00

17 lines
318 B
Plaintext

/*
namespace: Compile
expectation: Fail
input_files: inputs/add.in
*/
program test.aleo {
// This record does define the `gates` variable but with the wrong type.
record Token {
gates: address,
owner: address,
}
function main(a: u8, b:u8) -> u8 {
return a + b;
}}