69b9bfc3e0
Java resolving subsystem requires calculated visibility for correct disambiguation of supertypes. But visibility remains `Unknown` for Kotlin class-like declarations during supertypes resolving because `STATUS` resolve phase is performed after `SUPER_TYPES` phase. To fix the problem, the visibility should be initialized to public at the FIR building phase if no modifier is presented. ^KT-64127 Fixed
35 lines
1.0 KiB
Plaintext
Vendored
35 lines
1.0 KiB
Plaintext
Vendored
Tower Data Context:
|
|
Element 0
|
|
Scope: FirDefaultStarImportingScope
|
|
Element 1
|
|
Scope: FirExplicitStarImportingScope
|
|
Element 2
|
|
Scope: FirDefaultSimpleImportingScope
|
|
Element 3
|
|
Scope: FirDefaultSimpleImportingScope
|
|
Element 4
|
|
Scope: FirPackageMemberScope
|
|
Element 5
|
|
Scope: FirExplicitSimpleImportingScope
|
|
|
|
FILE: [ResolvedTo(IMPORTS)] contextReceiver.kt
|
|
public open [ResolvedTo(STATUS)] class Base : R|kotlin/Any| {
|
|
public [ResolvedTo(STATUS)] constructor(): R|test/Base| {
|
|
LAZY_super<R|kotlin/Any|>
|
|
}
|
|
|
|
public final? [ResolvedTo(RAW_FIR)] class Nested : R|kotlin/Any| {
|
|
public? [ResolvedTo(RAW_FIR)] constructor(): R|test/Base.Nested| {
|
|
LAZY_super<R|kotlin/Any|>
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
context(R|test/Base|)
|
|
public final [ResolvedTo(ANNOTATION_ARGUMENTS)] class Child : R|test/Base| {
|
|
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|test/Child| {
|
|
super<R|test/Base|>()
|
|
}
|
|
|
|
} |