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
Describe the bug
In Amber, the nameof builtin keyword returns the compiled name of a variable in-scope. Unfortunately, it doesn't currently work for functions.
Describe the bug
In Amber, the
nameof
builtin keyword returns the compiled name of a variable in-scope. Unfortunately, it doesn't currently work for functions.To Reproduce
Compile the following:
This will fail with the message:
Variable 'a' not found
Expected behavior
The script compiles successfully, and
{nameof a}
is replaced with the compiled name of the function (something akin toa__1_v0
)Additional context
As shown in the example above, the ability to use
nameof
on functions is necessary to use them in traps, for instance.The text was updated successfully, but these errors were encountered: