Files
kotlin/compiler/testData/codegen/box/callableReference/bound/smartCastForExtensionReceiver.kt
Alexander Udalov fef4c8ccd8 Fix VerifyError on bound function reference on generic property
Also add a test for obsolete KT-14755

 #KT-16929 Fixed
2017-03-24 11:06:15 +03:00

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"
}