Open
Description
openedon Sep 19, 2021
Hello,
This error message puzzled me.
enum Token {
As
}
module Mod {
const TOKENS = [
{A, (s : String) { A }},
{"a", (s : String) { Token::As }},
{"a", (s : String) { As }}
]
}
Line 9: The body of a record must end with a closing bracket. I was looking for the bracket } but found "a", instead.
The problem was that As
is not defined, only Token::As
. But the same error doesn't come for A
, which is not defined either.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment