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 Test { static function main() { trace("Haxe 4.2 overload example"); var doc = new Document(); doc.append('hello'); doc.append(new Image()); doc.append(new Table()); } } // stub a Document type (doesn't do anything!) class Document { public function new() {} public overload extern inline function append(string: String) { trace('append string!'); } public overload extern inline function append(image: Image) { trace('append image!'); } public overload extern inline function append(table: Table) { trace('append table!'); } } // stub for an Image type class Image { public function new() {} } // stub for an Table type class Table { public function new() {} }
https://try.haxe.org/#35228D26
https://community.haxe.org/t/sneaky-feature-showcase-overloads-in-haxe-4-2/2971
The text was updated successfully, but these errors were encountered:
the latest build (RC1) supports parsing the keyword, however the semantics are missing so you will see Duplicate class field declaration warnings
Duplicate class field declaration
Sorry, something went wrong.
No branches or pull requests
https://try.haxe.org/#35228D26
https://community.haxe.org/t/sneaky-feature-showcase-overloads-in-haxe-4-2/2971
The text was updated successfully, but these errors were encountered: