[K/N] Safer handling of bridges function in dce

This commit is contained in:
Pavel Kunyavskiy
2021-09-08 17:10:44 +03:00
committed by Space
parent 007cf2ce7c
commit 51c85e7f86
4 changed files with 30 additions and 0 deletions
@@ -0,0 +1,13 @@
interface Base { val id: Int }
inline class Child(override val id: Int = 1) : Base
interface Base2 { val prop: Base }
class Child2(override val prop: Child) : Base2
fun main() {
val x : Base = Child(5)
println(x.id)
val y : Base2 = Child2(Child(5))
println(y.prop)
}
@@ -0,0 +1,2 @@
5
Child(id=5)