leo/tests/parser/functions/annotated_arg_not_ident.leo
2022-03-04 10:26:34 -08:00

21 lines
213 B
Plaintext

/*
namespace: Parse
expectation: Fail
*/
@foo(?, bar, ?)
function x() {
return ();
}
@bar(123) // ints not vali
function x() {
return ();
}
@context // recovery witness
function x() {
return ();
}