Created
July 2, 2019 01:31
-
-
Save waneck/4dbe2e8a59128a5228c26f0f17106894 to your computer and use it in GitHub Desktop.
hxcpp cppia bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-main Main | |
-cpp cpp | |
-D scriptable | |
-dce no | |
--next | |
-cpp cppia.cppia | |
-D cppia | |
-debug | |
Test2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Test; | |
class Main { | |
static function main() { | |
trace("loading cppia"); | |
untyped __global__.__scriptable_load_cppia(sys.io.File.getContent("cppia.cppia")); | |
var t3:Test = Type.createInstance(Type.resolveClass('Test2'), []); | |
t3.doTest(15); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Test { | |
public function new() { | |
} | |
public function doTest(float:cpp.Float32) { | |
trace('doTest',float); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Test; | |
class Test2 extends Test { | |
override public function doTest(float:cpp.Float32) { | |
trace('doTest cppia',float); | |
super.doTest(float); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment