We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class Main { public function new() { var arr:Array<Foo> = []; shuffleArray(arr); } public function shuffleArray<T>(arr:Array<T>):Void { //do something with array } } @:nativeGen class Foo { public function new() { } }
Generates:
public class Main { public Main() { global::haxe.root.Array<object> arr = new global::haxe.root.Array<object>(new object[]{}); this.shuffleArray<global::Foo>(( arr as global::haxe.root.Array<object> )); } public virtual void shuffleArray<T>(global::haxe.root.Array<T> arr) { } } public class Foo { public Foo() { } }
Problems in line this.shuffleArray<global::Foo>(( arr as global::haxe.root.Array<object> ));
this.shuffleArray<global::Foo>(( arr as global::haxe.root.Array<object> ));
global::Foo should be object
The text was updated successfully, but these errors were encountered:
Add tests for HaxeFoundation#5838
7c9cd84
I get this with current dev (35ce1e7), which seems fine:
35ce1e7
protected static void __hx_ctor__Main(global::Main __hx_this) { global::Array<object> arr = new global::Array<object>(new object[]{}); __hx_this.shuffleArray<object>(((global::Array<object>) (arr) )); } public virtual void shuffleArray<T>(global::Array<T> arr) { }
With https://github.com/kLabz/haxe/tree/testissue/5838/tests/misc/projects/Issue5838/
Sorry, something went wrong.
waneck
Successfully merging a pull request may close this issue.
Generates:
Problems in line
this.shuffleArray<global::Foo>(( arr as global::haxe.root.Array<object> ));
global::Foo should be object
The text was updated successfully, but these errors were encountered: