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
23 lines
582 B
Kotlin
Vendored
23 lines
582 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// ISSUE: KT-57166
|
|
// File order is important.
|
|
|
|
// FILE: InstanceObject.java
|
|
public interface InstanceObject {
|
|
long getDeallocTime();
|
|
void setDeallocTime(long deallocTime);
|
|
}
|
|
|
|
// FILE: LiveAllocationCaptureObject.kt
|
|
class LiveAllocationCaptureObject {
|
|
private fun queryJavaInstanceDelta() = run {
|
|
LiveAllocationInstanceObject().deallocTime = 42L
|
|
}
|
|
}
|
|
|
|
// FILE: LiveAllocationInstanceObject.kt
|
|
class LiveAllocationInstanceObject: InstanceObject {
|
|
override fun getDeallocTime() = 42L
|
|
override fun setDeallocTime(deallocTime: Long) {}
|
|
}
|