Files
hawk/t/e-001.err
hyung-hwan 24c91d3376
All checks were successful
continuous-integration/drone/push Build is passing
updated the parser to require a colone after a key for @{}
2025-11-18 18:49:38 +09:00

47 lines
655 B
Plaintext

BEGIN {
##ERROR: unexpected end of input
---
function abc(x { ##ERROR: comma expected in place of '{'
}
---
function abc (x, ...,) { ##ERROR: right parenthesis expected in place of ','
}
---
function abc (x, ..., a) { ##ERROR: right parenthesis expected in place of ','
}
---
function abc (... ...) { ##ERROR: right parenthesis expected in place of '...'
}
---
BEGIN {
@argv = 10 ##ERROR: invalid assignment statement
}
---
BEGIN {
@argc = 10 ##ERROR: invalid assignment statement
}
---
BEGIN {
@nil = 10 ##ERROR: invalid assignment statement
}
---
BEGIN {
@{};
@{ "hello", "world } ##ERROR: colon expected in place of ','
}