chickensoft-games / SuperNodes

Supercharge your Godot nodes with power-ups and third party source generators.
https://www.nuget.org/packages/Chickensoft.SuperNodes/
MIT License
55 stars 6 forks source link

SuperNode Code Generator throws error from "using static" syntax #17

Closed RevyaS closed 6 months ago

RevyaS commented 10 months ago

If the SuperNode class contains a 'using static' syntax, it will throw this error when building the project.

CS0138: A 'using namespace' directive can only be applied to namespaces; 'StaticClass' is a type not a namespace. Consider a 'using static' directive instead

Here's the minimal reproduction project. Just the main.cs containing 'using static' syntax for the static class. Removing it and its references will build just fine. SuperNodeStaticUsingIssue.zip

jolexxa commented 10 months ago

Thanks for reporting!