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
PopSlime
changed the title
Cannot use language keywords as the name of a component field
Cannot use language keywords as the name of a component
Sep 22, 2022
Describe the bug
When language keywords like
Event
are used as the name of a component, the code generator fails to handle the component name correctly.To Reproduce
Generate code for the following component.
Generated code:
Compilation error:
Potential Solution
Prefix the component name with a verbatim identifier
@
if it is a language keyword. For example,event
becomes@event
.Entitas Version
The text was updated successfully, but these errors were encountered: