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