[IR] dumpKotlinLike: add testdata for FIR tests
This commit is contained in:
committed by
teamcityserver
parent
d7bd4240e1
commit
c68040753d
@@ -0,0 +1,80 @@
|
||||
class Test1<T1 : Any?, T2 : Any?> {
|
||||
constructor(x: T1, y: T2) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val x: T1
|
||||
field = x
|
||||
get
|
||||
|
||||
val y: T2
|
||||
field = y
|
||||
get
|
||||
|
||||
}
|
||||
|
||||
class Test2 {
|
||||
constructor(x: Int, y: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val y: String
|
||||
field = y
|
||||
get
|
||||
|
||||
inner class TestInner<Z : Any?> {
|
||||
constructor(z: Z) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val z: Z
|
||||
field = z
|
||||
get
|
||||
|
||||
constructor(z: Z, i: Int) {
|
||||
<this>.this/*TestInner*/<Z>(z = z)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Test3 {
|
||||
constructor(x: Int, y: String = "") /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val x: Int
|
||||
field = x
|
||||
get
|
||||
|
||||
val y: String
|
||||
field = y
|
||||
get
|
||||
|
||||
}
|
||||
|
||||
class Test4<T : Any?> {
|
||||
constructor(x: Int) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val x: Int
|
||||
field = x
|
||||
get
|
||||
|
||||
constructor(x: Int, y: Int = 42) {
|
||||
this/*Test4*/<T>(x = x.plus(other = y))
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user