|
@@ -185,6 +185,13 @@ class Context {
|
|
|
return load("to_complex", 1)(t);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ Returns true if t1 and t2 unify, false otherwise
|
|
|
+ **/
|
|
|
+ public static function unify( t1 : Type, t2 : Type) : Bool {
|
|
|
+ return load("unify", 2)(t1, t2);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
Follow all typedefs to reach the actual real type
|
|
|
**/
|