[IR] dumpKotlinLike: add testdata for FIR tests
This commit is contained in:
committed by
teamcityserver
parent
d7bd4240e1
commit
c68040753d
@@ -0,0 +1,92 @@
|
||||
object Z {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
var counter: Int
|
||||
field = 0
|
||||
get
|
||||
set
|
||||
|
||||
fun foo() {
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
<this>.<set-counter>(<set-?> = 1)
|
||||
<this>.foo()
|
||||
Z.<set-counter>(<set-?> = 1)
|
||||
Z.foo()
|
||||
}
|
||||
|
||||
class Nested {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
init {
|
||||
Z.<set-counter>(<set-?> = 1)
|
||||
Z.foo()
|
||||
Z.<set-counter>(<set-?> = 1)
|
||||
Z.foo()
|
||||
}
|
||||
|
||||
fun test() {
|
||||
Z.<set-counter>(<set-?> = 1)
|
||||
Z.foo()
|
||||
Z.<set-counter>(<set-?> = 1)
|
||||
Z.foo()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
val aLambda: Function0<Unit>
|
||||
field = local fun <anonymous>() {
|
||||
<this>.<set-counter>(<set-?> = 1)
|
||||
<this>.foo()
|
||||
Z.<set-counter>(<set-?> = 1)
|
||||
Z.foo()
|
||||
}
|
||||
|
||||
get
|
||||
|
||||
val anObject: <no name provided>
|
||||
field = { // BLOCK
|
||||
local class <no name provided> {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
init {
|
||||
Z.<set-counter>(<set-?> = 1)
|
||||
Z.foo()
|
||||
Z.<set-counter>(<set-?> = 1)
|
||||
Z.foo()
|
||||
}
|
||||
|
||||
fun test() {
|
||||
Z.<set-counter>(<set-?> = 1)
|
||||
Z.foo()
|
||||
Z.<set-counter>(<set-?> = 1)
|
||||
Z.foo()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
<no name provided>()
|
||||
}
|
||||
get
|
||||
|
||||
}
|
||||
|
||||
fun Z.test() {
|
||||
<this>.<set-counter>(<set-?> = 1)
|
||||
<this>.foo()
|
||||
Z.<set-counter>(<set-?> = 1)
|
||||
Z.foo()
|
||||
}
|
||||
Reference in New Issue
Block a user