Pascal Peridont hace 8 años
padre
commit
f93bde24b7
Se han modificado 1 ficheros con 2 adiciones y 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 ) {