Created
March 12, 2013 12:42
-
-
Save vizanto/5142577 to your computer and use it in GitHub Desktop.
This file contains 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 FloatUtil { | |
static public function isSet(v:Float) { | |
trace("float isSet"); | |
} | |
} |
This file contains 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 IntUtil { | |
static public function isSet(v:Float) { | |
trace("int isSet"); | |
} | |
} |
This file contains 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
#if haxe_211 | |
typedef A = FloatUtil; | |
typedef B = IntUtil; | |
#else | |
typedef A = IntUtil; | |
typedef B = FloatUtil; | |
#end |
This file contains 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
➭ haxe -x Test.hx | |
IntUtil.hx:3: int isSet |
This file contains 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
using NumberUtil; | |
class Test{ | |
static function main() { | |
1.isSet(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment