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
30 lines
933 B
Plaintext
Vendored
30 lines
933 B
Plaintext
Vendored
KT element: KtClassInitializer
|
|
FIR element: FirAnonymousInitializerImpl
|
|
FIR source kind: KtRealSourceElementKind
|
|
|
|
FIR element rendered:
|
|
[ResolvedTo(BODY_RESOLVE)] init {
|
|
[ResolvedTo(BODY_RESOLVE)] lval i: R|kotlin/Int| = Int(1)
|
|
}
|
|
|
|
FIR FILE:
|
|
FILE: [ResolvedTo(IMPORTS)] initializerConflict.kt
|
|
package one.two
|
|
|
|
public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
|
|
public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor(): R|one/two/A| {
|
|
LAZY_super<R|kotlin/Any|>
|
|
}
|
|
|
|
}
|
|
public final [ResolvedTo(SUPER_TYPES)] typealias Foo = R|one/two/A|
|
|
public final [ResolvedTo(STATUS)] class Foo : R|kotlin/Any| {
|
|
public [ResolvedTo(STATUS)] [ContainingClassKey=Foo] constructor(): R|one/two/Foo| {
|
|
LAZY_super<R|kotlin/Any|>
|
|
}
|
|
|
|
[ResolvedTo(BODY_RESOLVE)] init {
|
|
[ResolvedTo(BODY_RESOLVE)] lval i: R|kotlin/Int| = Int(1)
|
|
}
|
|
|
|
} |