leo/tests/parser/functions/annotated_arg_not_ident_fail.leo
2022-08-04 17:55:26 -07:00

21 lines
234 B
Plaintext

/*
namespace: Parse
expectation: Fail
*/
@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;
}