antimony-lang/antimony

Constructors not valid as function parameters

garritfra opened this issue · 3 comments

This throws an error

append_todo(new Todo {
   name: text
   checked: false 
}
Error: "Token BraceClose not found, found Token { kind: Keyword(New), len: 3, raw: \"new\", pos: Position { line: 19, offset: 19, raw: 391 } }\n\"w Todo {\""
Error: "Token BraceClose not found, found Token { kind: Keyword(New), len: 3, raw: \"new\", pos: Position { line: 19, offset: 19, raw: 391 } }\n\"w Todo {\""

Hm, that error is very weird, I'll check the parser

@YerinAlexey I think "new" is just not an expected token by parse_argument_list. Should be easy to fix by adding it.