Nicolas Cannasse %!s(int64=8) %!d(string=hai) anos
pai
achega
5d633f120f
Modificáronse 1 ficheiros con 14 adicións e 0 borrados
  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;
+    }
+}