Pascal Peridont %!s(int64=8) %!d(string=hai) anos
pai
achega
f93bde24b7
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      hxsl/Checker.hx

+ 2 - 1
hxsl/Checker.hx

@@ -561,9 +561,10 @@ class Checker {
 		case EFunction(f):
 			if( isImport )
 				return;
-			for( f2 in funs )
+			for( f2 in funs.copy() ){
 				if( f2.f.name == f.name && f2.inherit )
 					funs.remove(f2);
+			}
 			funs.push({ f : f, p : e.pos, inherit : isExtends });
 		case EVars(vl):
 			for( v in vl ) {