You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forgive me if I'm just using this incorrectly, but whenever I try to use the local ^ syntax followed by a class declaration, I get the below error.
Compile error: [string "moonscript.lua"]:562: attempt to index field '?' (a nil value)
stack traceback:
[string "moonscript.lua"]:562: in function 'transformer'
[string "moonscript.lua"]:309: in function <[string "moonscript.lua"]:300>
(tail call): ?
[string "moonscript.lua"]:4858: in function 'stm'
[string "moonscript.lua"]:4897: in function <[string "moonscript.lua"]:4888>
(tail call): ?
(tail call): ?
This is an example of the code that causes the error for me:
Moving the class declaration before the line with local ^ fixes the issue, and local * also works. It doesn't seem to matter if the class name is uppercase, or if the class has a name at all, e.g. the code below still errors:
local^
lowercase =5Uppercase=5class
Using version 0.4.0. thanks (:
The text was updated successfully, but these errors were encountered:
Forgive me if I'm just using this incorrectly, but whenever I try to use the
local ^
syntax followed by a class declaration, I get the below error.This is an example of the code that causes the error for me:
Moving the class declaration before the line with
local ^
fixes the issue, andlocal *
also works. It doesn't seem to matter if the class name is uppercase, or if the class has a name at all, e.g. the code below still errors:Using version 0.4.0. thanks (:
The text was updated successfully, but these errors were encountered: