11 lines
158 B
Kotlin
Vendored
11 lines
158 B
Kotlin
Vendored
interface T {
|
|
fun foo(): Int
|
|
}
|
|
|
|
interface U: T
|
|
|
|
fun test(t: T): Int {
|
|
return if (t is U)
|
|
<selection>t.foo()</selection> + 1
|
|
else t.foo()
|
|
} |