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