[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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user