Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/kt47073_nested.kt
T

13 lines
216 B
Kotlin
Vendored

// IGNORE_BACKEND: JS
class Test<T: Char>(val k: T) {
fun test(): String {
fun nested(x: T = k): String {
return "O$x"
}
return nested()
}
}
fun box() = Test('K').test()