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
46 lines
1.2 KiB
Plaintext
Vendored
46 lines
1.2 KiB
Plaintext
Vendored
FILE: initBlockWithDeclarations.kt
|
|
public final? class X : R|kotlin/Any| {
|
|
public? [ContainingClassKey=X] constructor(): R|X| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
init {
|
|
local final? class classInInit : R|kotlin/Any| {
|
|
public? [ContainingClassKey=classInInit] constructor(): R|<local>/classInInit| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public? final? fun funInClassInInit(): R|kotlin/Unit| {
|
|
}
|
|
|
|
}
|
|
|
|
local final? fun funInInit(): R|kotlin/Unit| {
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
public final? object <no name provided> : R|kotlin/Any| {
|
|
private [ContainingClassKey=<no name provided>] constructor(): R|<no name provided>| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
init {
|
|
local final? class classInInit : R|kotlin/Any| {
|
|
public? [ContainingClassKey=classInInit] constructor(): R|<local>/classInInit| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public? final? fun funInClassInInit(): R|kotlin/Unit| {
|
|
}
|
|
|
|
}
|
|
|
|
local final? fun funInInit(): R|kotlin/Unit| {
|
|
}
|
|
|
|
}
|
|
|
|
}
|