f9c6af4d2a
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
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
FILE: [ResolvedTo(BODY_RESOLVE)] localClassScript.kts
|
|
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
|
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
|
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
|
|
|
public final [ResolvedTo(BODY_RESOLVE)] fun a(): R|kotlin/Unit| {
|
|
local final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| {
|
|
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/X| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public final [ResolvedTo(BODY_RESOLVE)] class Y : R|kotlin/Any| {
|
|
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Y| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public final [ResolvedTo(BODY_RESOLVE)] fun b(): R|kotlin/Unit| {
|
|
local final [ResolvedTo(BODY_RESOLVE)] class Z : R|kotlin/Any| {
|
|
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/Z| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|