java-haxe-extern-creator icon indicating copy to clipboard operation
java-haxe-extern-creator copied to clipboard

Static and instance methods with same name

Open Dr-Emann opened this issue 12 years ago • 0 comments

Example

Java Source:

public String doSomething() {
    return "do something";
}
public static int doSomething() {
    return 1;
}

Compiles to:

@:overload(function():String{})
public static function doSomething():Int;

Explaination

This means both functions will be considered static in Haxe. However, this cannot be fixed without different syntax for haxe overloads.

Dr-Emann avatar Apr 23 '12 04:04 Dr-Emann