Files
kotlin-fork/idea/testData/refactoring/introduceVariable/callUnderSmartCast.kt
T
2015-05-13 16:13:13 +02:00

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()
}