Files
kotlin-fork/compiler/testData/codegen/box/callableReference/bound/smartCastForExtensionReceiver.kt
T
2018-06-28 12:26:41 +02:00

18 lines
204 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
class B
fun B.magic() {
}
fun boom(a: Any) {
when (a) {
is B -> run(a::magic)
}
}
fun box(): String {
boom(B())
return "OK"
}