fef4c8ccd8
Also add a test for obsolete KT-14755 #KT-16929 Fixed
16 lines
153 B
Kotlin
Vendored
16 lines
153 B
Kotlin
Vendored
class B
|
|
|
|
fun B.magic() {
|
|
}
|
|
|
|
fun boom(a: Any) {
|
|
when (a) {
|
|
is B -> run(a::magic)
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
boom(B())
|
|
return "OK"
|
|
}
|