Skip to content
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

[js] overload and @:require cannot be put together #10890

Closed
R32 opened this issue Dec 15, 2022 · 0 comments · Fixed by #10891
Closed

[js] overload and @:require cannot be put together #10890

R32 opened this issue Dec 15, 2022 · 0 comments · Fixed by #10891

Comments

@R32
Copy link
Contributor

R32 commented Dec 15, 2022

extern class Foo {
	@:require(ie) overload function test( i : Int ) : Void;
	@:require(ie) overload function test( s : String ) : Void;
}
// command: haxe --no-output --js foo.js Foo.hx

Compiling the code above will get an error:

Foo.hx:3: characters 34-38 : Duplicate class field declaration : Foo.test

It work fine after removing all @:require,or add -D ie to command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant