Explorar o código

add pseudo test (closes #2343)

Simon Krajewski %!s(int64=11) %!d(string=hai) anos
pai
achega
119a8de70a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      tests/unit/issues/Issue2343.hx

+ 3 - 0
tests/unit/issues/Issue2343.hx

@@ -15,5 +15,8 @@ class Issue2343 extends unit.Test {
 	function test() {
 		var foo = new Foo<MyInt>(1);
 		eq(1, foo.result);
+
+		// we cannot actually test this because it is delayed
+		//t(unit.TestType.typeError(var foo2 = new Foo<String>("1")));
 	}
 }