|
@@ -57,6 +57,12 @@ class TypeTools {
|
|
|
static public inline function follow( t : Type, ?once : Bool ) : Type
|
|
|
return Context.follow(t, once);
|
|
|
|
|
|
+ /**
|
|
|
+ Returns true if `t1` and `t2` unify, false otherwise.
|
|
|
+ **/
|
|
|
+ static public inline function unify( t1 : Type, t2:Type ) : Bool
|
|
|
+ return Context.unify(t1, t2);
|
|
|
+
|
|
|
/**
|
|
|
Returns a syntax-level type corresponding to Type `t`.
|
|
|
|