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
Removing the if statement will allow c2nim to create functions for the constructors and type while failing for the last construct. However, with the if directive everything inside it fails.
I believe we should be less strict with failing in this case. I may come up a fix for this in my free time, but until then I'm creating an issue here.
As for the error causing the failing construct, Vector2::Vector2 seems to be read as a return value inside of declarationWithoutSemicolon at which point the next parentheses makes the parser think its reading a function pointer declaration rather than an inline constructor.
Also, the title of the issue is what I believe is happening so far... I'm not 100% sure yet.
The text was updated successfully, but these errors were encountered:
Example:
Removing the if statement will allow c2nim to create functions for the constructors and type while failing for the last construct. However, with the if directive everything inside it fails.
I believe we should be less strict with failing in this case. I may come up a fix for this in my free time, but until then I'm creating an issue here.
As for the error causing the failing construct, Vector2::Vector2 seems to be read as a return value inside of
declarationWithoutSemicolon
at which point the next parentheses makes the parser think its reading a function pointer declaration rather than an inline constructor.Also, the title of the issue is what I believe is happening so far... I'm not 100% sure yet.
The text was updated successfully, but these errors were encountered: