diff --git a/hscript/Checker.hx b/hscript/Checker.hx index 178c724..6c993c1 100644 --- a/hscript/Checker.hx +++ b/hscript/Checker.hx @@ -597,6 +597,8 @@ class Checker { case [TDynamic, _]: return true; case [TAnon(a1),TAnon(a2)]: + if( a2.length == 0 ) // always unify with {} + return true; var m = new Map(); for( f in a1 ) m.set(f.name, f);