Browse Source

[tests] dodge #9642

Aleksandr Kuzmenko 5 years ago
parent
commit
a8393e9e72
1 changed files with 4 additions and 2 deletions
  1. 4 2
      tests/unit/src/unit/issues/Issue9641.hx

+ 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() {}
+}