9b89759755
During implicit body resolve phase, we can encounter a reference to a not yet resolved Kotlin class that inherits a synthetic property from a Java class. In that case, resolve the return type in FirSyntheticPropertiesScope. #KT-57166 Fixed
27 lines
482 B
Kotlin
Vendored
27 lines
482 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// ISSUE: KT-57166
|
|
|
|
// FILE: PsiType.java
|
|
|
|
public abstract class PsiType {
|
|
}
|
|
|
|
// FILE: JavaCodeFragment.java
|
|
|
|
public interface JavaCodeFragment {
|
|
PsiType getThisType();
|
|
void setThisType(PsiType psiType);
|
|
}
|
|
|
|
// FILE: KtCodeFragment.kt
|
|
|
|
abstract class KtCodeFragment : JavaCodeFragment {
|
|
private var thisType: PsiType? = null
|
|
|
|
override fun getThisType() = thisType
|
|
|
|
override fun setThisType(psiType: PsiType?) {
|
|
thisType = psiType
|
|
}
|
|
}
|