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
29 lines
1.4 KiB
Plaintext
29 lines
1.4 KiB
Plaintext
FILE: [ResolvedTo(BODY_RESOLVE)] declarationsInPropertyInitScript.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)] class A : R|kotlin/Any| {
|
|
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public final [ResolvedTo(BODY_RESOLVE)] val a: R|kotlin/Unit| = this@R|/A|.R|kotlin/run|<R|A|, R|kotlin/Unit|>(<L> = [ResolvedTo(BODY_RESOLVE)] run@fun R|A|.<anonymous>(): R|kotlin/Unit| <inline=Inline, kind=EXACTLY_ONCE> {
|
|
local final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| {
|
|
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/X| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
}
|
|
|
|
[ResolvedTo(BODY_RESOLVE)] lval y: R|kotlin/Int| = Int(10)
|
|
}
|
|
)
|
|
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Unit|
|
|
|
|
}
|
|
|
|
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] R> run([ResolvedTo(BODY_RESOLVE)] block: R|() -> R|): R|R| {
|
|
^run R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|R|>|()
|
|
}
|