[K/N][Tests] Adjust moved codegen tests to new infra

^KT-61259
This commit is contained in:
Vladimir Sukharev
2023-12-14 20:14:47 +01:00
committed by Space Team
parent 71a834b778
commit 73032213f0
295 changed files with 1362 additions and 1145 deletions
@@ -1,3 +1,5 @@
import kotlin.test.*
interface Base { val id: Int }
inline class Child(override val id: Int = 1) : Base
@@ -5,9 +7,11 @@ inline class Child(override val id: Int = 1) : Base
interface Base2 { val prop: Base }
class Child2(override val prop: Child) : Base2
fun main() {
fun box(): String {
val x : Base = Child(5)
println(x.id)
assertEquals(5, x.id)
val y : Base2 = Child2(Child(5))
println(y.prop)
assertEquals("Child(id=5)", y.prop.toString())
return "OK"
}