40799a0a43
#KT-5996 Fixed
11 lines
150 B
Kotlin
11 lines
150 B
Kotlin
trait T {
|
|
fun foo(): Int
|
|
}
|
|
|
|
trait U: T
|
|
|
|
fun test(t: T): Int {
|
|
return if (t is U)
|
|
<selection>t.foo()</selection> + 1
|
|
else t.foo()
|
|
} |