make unify public

This commit is contained in:
Nicolas Cannasse
2019-08-29 17:29:11 +02:00
parent eef4c66374
commit 975d122491
+1 -1
View File
@@ -518,7 +518,7 @@ class Checker {
return typeEq(t1,t2);
}
function unify( t1 : TType, t2 : TType, e : Expr ) {
public function unify( t1 : TType, t2 : TType, e : Expr ) {
if( !tryUnify(t1,t2) )
error(typeStr(t1)+" should be "+typeStr(t2),e);
}