b48835f3ce
To handle implicit return types, those should be reported on declarations with return type positioning strategy, instead of return type itself.
9 lines
236 B
Kotlin
Vendored
9 lines
236 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
data class A(val x: Int) {
|
|
fun toArray(): IntArray =
|
|
intArrayOf(x)
|
|
|
|
override fun <!RETURN_TYPE_MISMATCH_ON_OVERRIDE!>toString<!>() =
|
|
toArray().takeWhile { it != -1 } // .joinToString()
|
|
}
|