JS: create new common directory for all generated tests, migrate several tests there
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user