[IR] add testdata for dumpKotlinLike

This commit is contained in:
Zalim Bashorov
2020-11-05 02:47:53 +03:00
committed by teamcityserver
parent d2022ab115
commit 8d5facb15f
365 changed files with 15516 additions and 0 deletions
@@ -0,0 +1,96 @@
class Test1<T1 : Any?, T2 : Any?> {
constructor(x: T1, y: T2) /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
val x: T1
field = x
get
val y: T2
field = y
get
}
class Test2 {
constructor(x: Int, y: String) /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
val y: String
field = y
get
inner class TestInner<Z : Any?> {
constructor(z: Z) /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
val z: Z
field = z
get
constructor(z: Z, i: Int) {
TODO("IrDelegatingConstructorCall")
}
}
}
class Test3 {
constructor(x: Int, y: String = "") /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
val x: Int
field = x
get
val y: String
field = y
get
}
class Test4<T : Any?> {
constructor(x: Int) /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
val x: Int
field = x
get
constructor(x: Int, y: Int = 42) {
TODO("IrDelegatingConstructorCall")
}
}