another {} unify fix

This commit is contained in:
Nicolas Cannasse
2021-05-14 18:22:16 +02:00
parent 459a39e65d
commit e7ccd2e72d
+1 -1
View File
@@ -974,7 +974,7 @@ class Checker {
return TVoid;
case EObject(fl):
switch( withType ) {
case WithType(follow(_) => TAnon(tfields)):
case WithType(follow(_) => TAnon(tfields)) if( tfields.length > 0 ):
var map = [for( f in tfields ) f.name => f];
return TAnon([for( f in fl ) {
var ft = map.get(f.name);