FIR checker: fix positions of type mismatch on overrides

To handle implicit return types, those should be reported on
declarations with return type positioning strategy, instead of
return type itself.
This commit is contained in:
Jinseong Jeon
2021-01-28 14:00:47 -08:00
committed by Dmitriy Novozhilov
parent 571c4ce398
commit b48835f3ce
17 changed files with 120 additions and 149 deletions
@@ -1,7 +0,0 @@
data class A(val x: Int) {
fun toArray(): IntArray =
intArrayOf(x)
override fun toString() =
toArray().takeWhile { it != -1 } // .joinToString()
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
data class A(val x: Int) {
fun toArray(): IntArray =
intArrayOf(x)