leo/tests/parser/functions/annotated_arg_not_ident_fail.leo
2022-10-05 16:54:50 -07:00

23 lines
320 B
Plaintext

/*
namespace: Parse
expectation: Fail
*/
program test.aleo {
@foo(?, bar, ?)
function x() -> u8 {
return 1u8;
}
@bar(123) // ints not vali
function x() -> u8 {
return 2u8;
}
@context // recovery witness
function x() -> u8 {
return 3u8;
}
}