Files
Nikolay Lunyak f9c6af4d2a [FIR] Properly assign <local> packages to symbols
This prevents `FirConflictsExpressionChecker.kt`
from missing conflicting local functions. It used
to due to inconsistencies in assigning `<local>`,
and this commit makes it a bit more
straightforward.

The change in KtClassTypeQualifierRenderer
prevents `FirOverrideImplementTest.testLocalClass`
from failing in `intellij`. It didn't fail for
callables, because `KtCallableSignatureRenderer`
doesn't try to render packages.

^KT-59186 Fixed
2023-08-18 13:31:04 +00:00

59 lines
1.7 KiB
Plaintext
Vendored

FILE: propertiesAndInitBlocks.kt
public final inline fun run(block: R|() -> kotlin/Unit|): R|kotlin/Unit| {
R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()
}
public final val x1: R|kotlin/Int| = Int(1)
public get(): R|kotlin/Int|
public final var x2: R|kotlin/Int| = Int(1)
public get(): R|kotlin/Int| {
^ Int(1)
}
public set(value: R|kotlin/Int|): R|kotlin/Unit| {
F|/x2| = Int(1)
}
public final val x3: R|kotlin/Unit| = R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> {
local final fun foo(): R|kotlin/Unit| {
lval c: R|kotlin/Int| = Int(1).R|kotlin/Int.plus|(Int(1))
throw R|java/lang/Exception.Exception|()
}
local final class InitializerLocalClass : R|kotlin/Any| {
public constructor(): R|<local>/InitializerLocalClass| {
super<R|kotlin/Any|>()
}
init {
throw R|java/lang/Exception.Exception|()
Int(1)
}
}
throw R|java/lang/Exception.Exception|()
}
)
public get(): R|kotlin/Unit| {
local final class GetterLocalClass : R|kotlin/Any| {
public constructor(): R|<local>/GetterLocalClass| {
super<R|kotlin/Any|>()
}
init {
throw R|java/lang/Exception.Exception|()
}
}
}
public final val x4: R|kotlin/Int| = try {
Int(1)
}
catch (e: R|kotlin/Exception|) {
Int(2)
}
finally {
Int(0)
}
public get(): R|kotlin/Int|