Skip to content

Commit ea1d160

Browse files
committed
bugfix in typing unification
1 parent 363b87a commit ea1d160

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hscript/Checker.hx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ class Checker {
714714
default: throw "assert";
715715
}
716716
}
717-
if( !typeEq(f1.t,f2.t) )
717+
if( !typeEq(apply(f1.t,cl1.params,pl1),f2.t) )
718718
return false;
719719
}
720720
return true;
@@ -1332,7 +1332,8 @@ class Checker {
13321332
case TAbstract(a, args):
13331333
// special case : we allow unconditional access
13341334
// to an abstract iterator() underlying value (eg: ArrayProxy)
1335-
ft = getField(apply(a.t,a.params,args),"iterator",it);
1335+
var at = apply(a.t,a.params,args);
1336+
return getIteratorType(it, at);
13361337
default:
13371338
}
13381339
if( ft != null )

0 commit comments

Comments
 (0)