An in development statically typed systems programming language; with sustainability at its core. We, the community of users, maintain it.
280
stars
39
forks
source link
macro generated objects with field name containing '`' cannot be accessed #1379
Closed
alaviss closed 4 months ago
Example
Actual Output
Expected Output
This should compile normally
Additional Information
`gensym
in their repr.`
character is key to triggering this bug. Other special characters does not seem to cause any problems.Generated code:
AST form:
``` StmtList TypeSection TypeDef Ident "env" Empty ObjectTy Empty Empty RecList IdentDefs Ident "x`" Ident "int" Empty LetSection IdentDefs Ident "e" Empty Call Ident "env" DiscardStmt DotExpr Ident "e" Ident "x`" ```