Nicolas Cannasse 8 년 전
부모
커밋
5d633f120f
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 14 0
      tests/unit/compiler_loops/Issue6038.hx

+ 14 - 0
tests/unit/compiler_loops/Issue6038.hx

@@ -0,0 +1,14 @@
+class Promise<T> {
+    function then<TOut>():Promise<TOut> { return null; }
+}
+
+typedef Thenable<T> = {
+    function then():Thenable<T>;
+}
+
+class Issue6038 {
+    static function main() {
+        var p:Promise<Int> = null;
+        var t:Thenable<Int> = p;
+    }
+}