Closed
Description
MoonScript supports syntax such as t.for
and gets translated to t["for"]
, it happens in table construction and other places as well. This however, isn't the case for indexes such as @for
or @@function
, which get translated into self.for
and self.__class.function
respectively, without escaping them.
The expected result is self["for"]
and self.__class["function"]
.
Metadata
Metadata
Assignees
Labels
No labels