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:
committed by
Dmitriy Novozhilov
parent
571c4ce398
commit
b48835f3ce
Vendored
-7
@@ -1,7 +0,0 @@
|
||||
data class A(val x: Int) {
|
||||
fun toArray(): IntArray =
|
||||
intArrayOf(x)
|
||||
|
||||
override fun toString() =
|
||||
toArray().takeWhile { it != -1 } // .joinToString()
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
data class A(val x: Int) {
|
||||
fun toArray(): IntArray =
|
||||
intArrayOf(x)
|
||||
|
||||
Reference in New Issue
Block a user