mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
17 lines
183 B
Kotlin
Vendored
17 lines
183 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
class B
|
|
|
|
fun B.magic() {
|
|
}
|
|
|
|
fun boom(a: Any) {
|
|
when (a) {
|
|
is B -> run(a::magic)
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
boom(B())
|
|
return "OK"
|
|
}
|