HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.14k stars 655 forks source link

[C#] @:native has inconsistent output path effects on files with multiple classes #4722

Closed YellowAfterlife closed 1 year ago

YellowAfterlife commented 8 years ago
package some;
@:native("other.A") class A { }

will generate /other/A.cs. However, adding another class,

package some;
@:native("other.A") class A { }
@:native("other.B") class B { }

causes the target to generate /some/A.cs, hough with the correct namespace ~

// ...
namespace other {
    public class A { /* ... */ }
    public class B { /* ... */ }
}

The code will remain functional (since C# does not rely on source file paths) but it's a little strange to find the output file in different locations depending on amount of things in it.

Simn commented 1 year ago

Closing old C# issue that won't be addressed.