[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,120 @@
interface IFoo {
abstract fun foo()
}
val test1: Any
field = { //BLOCK
local class <no name provided> {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
}
TODO("IrConstructorCall")
}
get
val test2: IFoo
field = { //BLOCK
local class <no name provided> : IFoo {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
override fun foo() {
println(message = "foo")
}
}
TODO("IrConstructorCall")
}
get
class Outer {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
abstract inner class Inner : IFoo {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
}
fun test3(): Inner {
return { //BLOCK
local class <no name provided> : Inner {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
override fun foo() {
println(message = "foo")
}
}
TODO("IrConstructorCall")
}
}
}
fun Outer.test4(): Inner {
return { //BLOCK
local class <no name provided> : Inner {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
/* InstanceInitializerCall */
}
override fun foo() {
println(message = "foo")
}
}
TODO("IrConstructorCall")
}
}