[FIR] Initialize public visibility for class-like declarations at FIR building phase if no modifier is presented
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
This commit is contained in:
committed by
Space Team
parent
ee8d42532b
commit
69b9bfc3e0
+11
-11
@@ -1,54 +1,54 @@
|
||||
RAW_FIR:
|
||||
FILE: [ResolvedTo(RAW_FIR)] complexLocalHierarchy.kt
|
||||
public? final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
public final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
}
|
||||
public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||
|
||||
IMPORTS:
|
||||
FILE: [ResolvedTo(IMPORTS)] complexLocalHierarchy.kt
|
||||
public? final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
public final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
}
|
||||
public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||
|
||||
COMPILER_REQUIRED_ANNOTATIONS:
|
||||
FILE: [ResolvedTo(IMPORTS)] complexLocalHierarchy.kt
|
||||
public? final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
public final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
}
|
||||
public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||
|
||||
COMPANION_GENERATION:
|
||||
FILE: [ResolvedTo(IMPORTS)] complexLocalHierarchy.kt
|
||||
public? final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
public final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
}
|
||||
public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||
|
||||
SUPER_TYPES:
|
||||
FILE: [ResolvedTo(IMPORTS)] complexLocalHierarchy.kt
|
||||
public? final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
public final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
}
|
||||
public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||
|
||||
TYPES:
|
||||
FILE: [ResolvedTo(IMPORTS)] complexLocalHierarchy.kt
|
||||
public? final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
public final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
}
|
||||
public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||
|
||||
STATUS:
|
||||
FILE: [ResolvedTo(IMPORTS)] complexLocalHierarchy.kt
|
||||
public? final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
public final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
}
|
||||
public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||
|
||||
EXPECT_ACTUAL_MATCHING:
|
||||
FILE: [ResolvedTo(IMPORTS)] complexLocalHierarchy.kt
|
||||
public? final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
public final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
}
|
||||
public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||
|
||||
CONTRACTS:
|
||||
FILE: [ResolvedTo(IMPORTS)] complexLocalHierarchy.kt
|
||||
public? final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
public final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
}
|
||||
public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| {
|
||||
local open [ResolvedTo(RAW_FIR)] class A : B {
|
||||
@@ -76,7 +76,7 @@ FILE: [ResolvedTo(IMPORTS)] complexLocalHierarchy.kt
|
||||
|
||||
IMPLICIT_TYPES_BODY_RESOLVE:
|
||||
FILE: [ResolvedTo(IMPORTS)] complexLocalHierarchy.kt
|
||||
public? final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
public final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
}
|
||||
public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| {
|
||||
local open [ResolvedTo(RAW_FIR)] class A : B {
|
||||
@@ -104,7 +104,7 @@ FILE: [ResolvedTo(IMPORTS)] complexLocalHierarchy.kt
|
||||
|
||||
ANNOTATION_ARGUMENTS:
|
||||
FILE: [ResolvedTo(IMPORTS)] complexLocalHierarchy.kt
|
||||
public? final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
public final? [ResolvedTo(RAW_FIR)] interface NonLocalInterface : R|kotlin/Any| {
|
||||
}
|
||||
public final [ResolvedTo(ANNOTATION_ARGUMENTS)] fun resolveMe(): R|kotlin/Unit| {
|
||||
local open [ResolvedTo(RAW_FIR)] class A : B {
|
||||
|
||||
Reference in New Issue
Block a user