[FIR] avoid jumping from status transformer for local classes to unresolved non-local classes

We must resolve a non-local declaration before access
if we want to jump from local to it to avoid possible problems
with parallel resolution

^KT-56550
This commit is contained in:
Dmitrii Gridin
2023-05-07 17:06:50 +02:00
committed by Space Team
parent 71c66cdb01
commit ba08f2c08a
6 changed files with 482 additions and 7 deletions
@@ -121,8 +121,8 @@ FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
}
private [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] get(): <ERROR TYPE REF: Wrong number of type arguments>
public abstract [ResolvedTo(TYPES)] interface A<[ResolvedTo(TYPES)] T> : R|kotlin/Any| {
public abstract [ResolvedTo(TYPES)] fun x(): R|kotlin/Unit|
public abstract [ResolvedTo(STATUS)] interface A<[ResolvedTo(STATUS)] T> : R|kotlin/Any| {
public abstract [ResolvedTo(STATUS)] fun x(): R|kotlin/Unit|
}
@@ -140,8 +140,8 @@ FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
}
private [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] get(): <ERROR TYPE REF: Wrong number of type arguments>
public abstract [ResolvedTo(TYPES)] interface A<[ResolvedTo(TYPES)] T> : R|kotlin/Any| {
public abstract [ResolvedTo(TYPES)] fun x(): R|kotlin/Unit|
public abstract [ResolvedTo(STATUS)] interface A<[ResolvedTo(STATUS)] T> : R|kotlin/Any| {
public abstract [ResolvedTo(STATUS)] fun x(): R|kotlin/Unit|
}
@@ -159,8 +159,8 @@ FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt
}
private [ResolvedTo(BODY_RESOLVE)] get(): <ERROR TYPE REF: Wrong number of type arguments>
public abstract [ResolvedTo(TYPES)] interface A<[ResolvedTo(TYPES)] T> : R|kotlin/Any| {
public abstract [ResolvedTo(TYPES)] fun x(): R|kotlin/Unit|
public abstract [ResolvedTo(STATUS)] interface A<[ResolvedTo(STATUS)] T> : R|kotlin/Any| {
public abstract [ResolvedTo(STATUS)] fun x(): R|kotlin/Unit|
}