[IR] dumpKotlinLike: add testdata for FIR tests

This commit is contained in:
Zalim Bashorov
2020-11-20 18:18:14 +03:00
committed by teamcityserver
parent d7bd4240e1
commit c68040753d
298 changed files with 12186 additions and 0 deletions
@@ -0,0 +1,49 @@
fun box(): String {
val obj: <no name provided> = { // BLOCK
local class <no name provided> {
private constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
val end: String
field = "K"
get
fun foo(): String {
return <this>.Some(s = "O").bar()
}
local inner class Some : Base {
constructor(s: String) /* primary */ {
<this>.super/*Base*/(s = s)
/* <init>() */
}
fun bar(): String {
return <this>.<get-s>().plus(other = <this>.<get-end>())
}
}
local open inner class Base {
constructor(s: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
val s: String
field = s
get
}
}
<no name provided>()
}
return obj.foo()
}