Closed NQNStudios closed 10 months ago
This issue could be relatively easy to fix indeed. The difficult part may be to find the place where this should be fixed. C# and Java generators share quite complex codebase. It usually takes time to figure out program flow.
I've reproduced a bug that causes an error when using the
tink_core
macro library with C#.Main.hx:
Other.hx:
Generates Other.cs (abridged to show relevant lines):
The parameter name
_
is disambiguated in the first generated class, avoiding a C# compiler error, but the same is not done for the method generated on the interface.The resulting C# error is
src\template\Other.cs(100,30): error CS0100: The parameter name '_' is a duplicate
.Other
must be a generic class, ANDReflect.field
must be called onfunc
, to reproduce this error.I'm wondering if this would be a good first issue for me to get started contributing some maintenance to the C# target.