Ver código fonte

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

Simon Krajewski 8 anos atrás
pai
commit
171618a68f
1 arquivos alterados com 1 adições e 1 exclusões
  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?';
 	}
 }