leo/tests/parser/functions/annotated_arg_not_ident.leo

21 lines
213 B
Plaintext
Raw Normal View History

2022-01-28 21:34:02 +03:00
/*
namespace: Parse
expectation: Fail
*/
@foo(?, bar, ?)
function x() {
return ();
}
2022-03-04 21:26:34 +03:00
@bar(123) // ints not vali
function x() {
return ();
}
2022-01-28 21:34:02 +03:00
@context // recovery witness
function x() {
return ();
}