Aleksandr Kuzmenko 4 years ago
parent
commit
093bf83f77

+ 10 - 0
tests/misc/compiler_loops/projects/Issue10308/Main.hx

@@ -0,0 +1,10 @@
+class Main{
+	static public function main(){
+		var event = null;
+		event = haxe.MainLoop.add(
+			() -> {
+				event.stop();
+			}
+		);
+	}
+}

+ 2 - 0
tests/misc/compiler_loops/projects/Issue10308/compile.hxml

@@ -0,0 +1,2 @@
+--main Main
+--interp