[K/N][Tests] Adjust moved codegen tests to new infra
^KT-61259
This commit is contained in:
committed by
Space Team
parent
71a834b778
commit
73032213f0
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user