Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/kt48391.kt
T
2021-09-03 15:00:44 +02:00

18 lines
220 B
Kotlin
Vendored

// FILE: 1.kt
class B : A<String>
fun box(): String =
B().f()!!
// FILE: 2.kt
interface A<T> {
fun f(s: String = RESULT): T? =
s as T
companion object {
private val RESULT = "OK"
}
}