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,18 @@
// KT-4218 Nested function literal on singleton object fails
package foo
object SomeObject {
val values = create()
fun create() = Array<Array<String>>(1) { y ->
Array<String>(1) { x ->
"(${x}, ${y})"
}
}
}
fun box(): String {
if (SomeObject.values[0][0] != "(0, 0)") return SomeObject.values[0][0]
return "OK"
}