[FE 1.0] Report INTEGER_OPERATOR_RESOLVE_WILL_CHANGE in missing cases

Covered places:
- local properties
- vars
- return positions of functions and lambdas

^KT-45970 Fixed
^KT-55358 Fixed
This commit is contained in:
Dmitriy Novozhilov
2022-12-08 17:43:54 +02:00
committed by Space Team
parent a979960e63
commit bd3a28d04d
15 changed files with 161 additions and 21 deletions
@@ -0,0 +1,16 @@
// FIR_IDENTICAL
// WITH_STDLIB
abstract class Parser {
open fun parseString(x: String): List<Int> = null!!
fun parse(name: String): Int = null!!
fun parse(name: String, content: String): Int = null!!
}
class Some(strings: List<String>) {
val parser = object : Parser() {
override fun parseString(x: String) = listOfInt
}
private val listOfString = strings
private val listOfInt: List<Int> = listOfString.map(parser::parse)
}