Skip to content

Instantly share code, notes, and snippets.

@vizanto
Created March 12, 2013 12:42
Show Gist options
  • Save vizanto/5142577 to your computer and use it in GitHub Desktop.
Save vizanto/5142577 to your computer and use it in GitHub Desktop.
class FloatUtil {
static public function isSet(v:Float) {
trace("float isSet");
}
}
class IntUtil {
static public function isSet(v:Float) {
trace("int isSet");
}
}
#if haxe_211
typedef A = FloatUtil;
typedef B = IntUtil;
#else
typedef A = IntUtil;
typedef B = FloatUtil;
#end
➭ haxe -x Test.hx
IntUtil.hx:3: int isSet
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