Sfoglia il codice sorgente

[tests] add test (closes #3878)

Simon Krajewski 8 anni fa
parent
commit
d801a87382
1 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  1. 11 0
      tests/optimization/src/issues/Issue3878.hx

+ 11 - 0
tests/optimization/src/issues/Issue3878.hx

@@ -0,0 +1,11 @@
+package issues;
+
+class Issue3878 {
+	@:js('
+		var v = "hello";
+	')
+	@:analyzer(no_const_propagation, no_local_dce)
+	static function test() {
+        var v = (function(id) return id : String->String)("hello");
+	}
+}