[FIR] Unwrap dispatcher type when determining property stability

If the modality of a property is not final, the modality of the dispatch
receiver can be used to determine if the property is stable. When
looking up the dispatch receiver symbol, make sure to unwrap the lower
bounds of flexible types.

^KT-61735 Fixed
This commit is contained in:
Brian Norman
2023-10-02 15:05:49 -05:00
committed by Space Team
parent 87904fd766
commit 1add296388
7 changed files with 53 additions and 2 deletions
@@ -0,0 +1,20 @@
// FIR_IDENTICAL
// WITH_STDLIB
// FILE: WorkAction.java
public interface WorkAction<T> {
T getParameters();
}
// FILE: main.kt
abstract class RunGTestJob : WorkAction<RunGTestJob.Parameters> {
interface Parameters {
val executable: String
}
fun execute() {
with(parameters) {
<!VAL_REASSIGNMENT!>executable<!> = executable
}
}
}