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;
+    }
+}