b454fcc1e0
This is needed to avoid clashes between different dumps from different handlers
41 lines
495 B
Plaintext
Vendored
41 lines
495 B
Plaintext
Vendored
fun foo(x: String = ""): String {
|
|
return x
|
|
}
|
|
|
|
class C {
|
|
constructor(x: String = "") /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
val x: String
|
|
field = x
|
|
get
|
|
|
|
}
|
|
|
|
fun use(fn: Function0<Any>): Any {
|
|
return fn.invoke()
|
|
}
|
|
|
|
fun testFn(): Any {
|
|
return use(fn = { // BLOCK
|
|
local fun foo(): String {
|
|
return foo()
|
|
}
|
|
|
|
::foo
|
|
})
|
|
}
|
|
|
|
fun testCtor(): Any {
|
|
return use(fn = { // BLOCK
|
|
local fun <init>(): C {
|
|
return C()
|
|
}
|
|
|
|
::<init>
|
|
})
|
|
}
|