diff --git a/hscript/Checker.hx b/hscript/Checker.hx index 6c993c1..800f755 100644 --- a/hscript/Checker.hx +++ b/hscript/Checker.hx @@ -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);