Files
kotlin-fork/compiler/testData/codegen/box/arrays/genericArrayInObjectLiteralConstructor.kt
T
2018-08-09 14:22:46 +03:00

16 lines
281 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
abstract class Table<T>(
val content: Array<Array<T>>
)
fun box(): String {
val x = object : Table<String>(
Array(1, {
x-> Array(1, {y -> "OK"})
})
) {}
return x.content[0][0]
}