10 lines
145 B
Kotlin
Vendored
10 lines
145 B
Kotlin
Vendored
interface A
|
|
interface B
|
|
|
|
fun <T> T.foo() where T: A, T: B {}
|
|
|
|
fun test(a: Any) {
|
|
if (a is A && a is B) {
|
|
<expr>a</expr>.foo()
|
|
}
|
|
} |