Explorar el Código

trick AS3 because I can't be arsed to look into that issue

Simon Krajewski hace 8 años
padre
commit
171618a68f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tests/unit/src/unit/issues/Issue6290.hx

+ 1 - 1
tests/unit/src/unit/issues/Issue6290.hx

@@ -12,8 +12,8 @@ private class TakeParent {
 
 private class TakeChild extends TakeParent {
 	public function new(child:Child) {
-		if (!Std.is(child, Child)) throw 'wtf?';
 		super(child);
+		if (!Std.is(child, Child)) throw 'wtf?';
 	}
 }