浏览代码

fix deprecation

Simon Krajewski 9 年之前
父节点
当前提交
30299b49d1
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      tests/unit/src/unit/issues/Issue3557.hx
  2. 1 1
      tests/unit/src/unit/issues/Issue4457.hx

+ 1 - 1
tests/unit/src/unit/issues/Issue3557.hx

@@ -13,7 +13,7 @@ private class MyClass extends Generic<MyBaseClass> {
 private interface Interface {}
 
 @:generic
-private class Generic<Default:{ public function new():Void; }>
+private class Generic<Default:haxe.Constraints.Constructible<Void->Void>>
 	extends Default
 	implements Interface {}
 

+ 1 - 1
tests/unit/src/unit/issues/Issue4457.hx

@@ -5,7 +5,7 @@ private class A {
 }
 
 @:generic
-private class B<T:{function new():Void;}> extends A {
+private class B<T:haxe.Constraints.Constructible<Void->Void>> extends A {
 }
 
 class Issue4457 extends Test