2
0
Aleksandr Kuzmenko 5 жил өмнө
parent
commit
a8393e9e72

+ 4 - 2
tests/unit/src/unit/issues/Issue9641.hx

@@ -3,11 +3,13 @@ package unit.issues;
 class Issue9641 extends unit.Test {
 	function test() {
 		try {
-			throw new MyException<Int>('');
+			throw new MyException<Int>();
 		} catch(e:MyException<Any>) {
 			noAssert();
 		}
 	}
 }
 
-private class MyException<T> extends haxe.Exception {}
+private class MyException<T> {
+	public function new() {}
+}