-
-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cs] -D erase-generics problem #3949
Comments
I don't think there's anything we can do in here. It's the age-old problem of dealing with type parameters and native arrays on java/c#. Any ideas, @nadako ? |
Not really... |
Blocks #5749 import cs.NativeArray;
class Main {
public static function main() {
var a = new Arr<Int>();
test(a.arr[0]);
}
static public function test(i:Int) {}
}
class Arr<T> {
public var arr:NativeArray<T>;
public function new() {}
}
Generated cs for the failing line: global::Main.test(((int[]) (a.arr) )[0]); We need to generate |
I kind of "fixed" this for |
Closing old C# issue that won't be addressed. |
generates
which then fails to compile by c# compiler
The text was updated successfully, but these errors were encountered: