typedefs correct resolve

This commit is contained in:
Dima Granetchi
2015-01-18 02:34:44 +02:00
parent 2520a65850
commit 94bca97041
4 changed files with 28 additions and 11 deletions
+5 -1
View File
@@ -81,7 +81,11 @@ class ExprUtils {
return expr == null || isTrue(expr);
static public inline function getComplexType(expr:Expr):ComplexType {
return Context.typeof(expr).toComplexType();
return deepTypeof(expr).toComplexType();
}
static public inline function deepTypeof(expr:Expr):haxe.macro.Type {
return Context.typeof(expr).follow();
}
}
#end