Constructors not valid as function parameters
garritfra opened this issue · 3 comments
garritfra commented
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 {\""
YerinAlexey commented
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
garritfra commented
@YerinAlexey I think "new" is just not an expected token by parse_argument_list. Should be easy to fix by adding it.
garritfra commented
I actually thought we did that. At least that's what makes the most sense.
Alexey <notifications@github.com> schrieb am So., 28. Feb. 2021, 11:04 AM:
… Why don't we just use parse_expression there and make it deal with all
the stuff?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHXFCQKT2DDU4ISQMMHWSSLTBIIJHANCNFSM4YKLTV6Q>
.