FIR2IR: better filter out non-declared data class properties

This commit is contained in:
pyos
2021-03-15 10:27:13 +01:00
committed by TeamCityServer
parent 1a57d60f68
commit 43140db65e
10 changed files with 62 additions and 8 deletions
+13
View File
@@ -0,0 +1,13 @@
interface A {
fun foo(): String
val bar: String
}
class B : A {
override fun foo(): String = "O"
override val bar: String get() = "K"
}
data class C(val a: A): A by a
fun box() = C(B()).let { it.foo() + it.bar }