Skip to content

Commit e7ccd2e

Browse files
committed
another {} unify fix
1 parent 459a39e commit e7ccd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hscript/Checker.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ class Checker {
974974
return TVoid;
975975
case EObject(fl):
976976
switch( withType ) {
977-
case WithType(follow(_) => TAnon(tfields)):
977+
case WithType(follow(_) => TAnon(tfields)) if( tfields.length > 0 ):
978978
var map = [for( f in tfields ) f.name => f];
979979
return TAnon([for( f in fl ) {
980980
var ft = map.get(f.name);

0 commit comments

Comments
 (0)