mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
283 B
Kotlin
Vendored
16 lines
283 B
Kotlin
Vendored
interface A {
|
|
private inline fun <reified T> callDefault(b: () -> String): String {
|
|
"String" is T
|
|
return b()
|
|
}
|
|
|
|
fun ok() = callDefault<String> { "OK" }
|
|
}
|
|
|
|
class B : A
|
|
|
|
fun box(): String {
|
|
return B().ok()
|
|
}
|
|
|
|
// 0 INVOKESTATIC A$DefaultImpls.callDefault |