Introduction of CastedClassReceiver and its handling in codegen #KT-6744 Fixed
ClassReceiver converted to Kotlin Also #KT-7617 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
open class A {
|
||||
fun f(): String =
|
||||
when (this) {
|
||||
is B -> x
|
||||
else -> "FAIL"
|
||||
}
|
||||
}
|
||||
|
||||
class B(val x: String) : A()
|
||||
|
||||
fun box() = B("OK").f()
|
||||
Reference in New Issue
Block a user