33e6a85a2d
We exclude testData pattern from copyright scope
14 lines
180 B
Kotlin
Vendored
14 lines
180 B
Kotlin
Vendored
interface Foo {
|
|
fun foo()
|
|
}
|
|
|
|
interface Bar {
|
|
fun bar()
|
|
}
|
|
|
|
fun test(obj: Any) {
|
|
when (obj) {
|
|
is Foo -> obj.foo()
|
|
is Bar -> <expr>obj.bar()</expr>
|
|
}
|
|
} |