JS: create new common directory for all generated tests, migrate several tests there

This commit is contained in:
Alexey Andreev
2016-08-26 16:44:48 +03:00
parent 34a57f863b
commit 2bf0199959
321 changed files with 2123 additions and 2001 deletions
@@ -0,0 +1,33 @@
package foo
fun box(): String {
val bar = 12
val baz = {
var result = "test1 "
if (true) {
val bar = "some text"
result += bar
}
result += bar
result
}
val r1 = baz()
if (r1 != "test1 some text12") return "r1 = $r1";
val boo = {
var result = "test2 "
result += bar
if (true) {
val bar = 4
result += bar
}
result
}
val r2 = boo()
if (r2 != "test2 124") return "r2 = $r2";
return "OK"
}