Files
kotlin-fork/compiler/testData/ir/irText/firProblems/cannotCastToFunction.fir.kt.txt
T
2024-02-16 10:19:38 +00:00

38 lines
773 B
Kotlin
Vendored

open class IrElement {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
fun IrElement.dump(normalizeNames: Boolean = false, stableOrder: Boolean = false): String {
return "K"
}
fun dump(data: IrElement, dumpStrategy: String): String {
val dump: @ExtensionFunctionType Function1<IrElement, String> = when {
EQEQ(arg0 = dumpStrategy, arg1 = "KotlinLike") -> { // BLOCK
local fun dumpKotlinLike(p0: IrElement): String {
return p0.dumpKotlinLike()
}
::dumpKotlinLike
}
else -> { // BLOCK
local fun dump(p0: IrElement): String {
return p0.dump()
}
::dump
}
}
return dump.invoke(p1 = data)
}
fun IrElement.dumpKotlinLike(options: String = ""): String {
return "O"
}