Files
kotlin-fork/idea/testData/inspectionsLocal/covariantEquals/inObjectLiteral.kt
T
Toshiaki Kameyama 61f3e776a7 Add 'Covariant equals' inspection
#KT-29798 Fixed
2019-04-02 13:19:05 +07:00

9 lines
174 B
Kotlin
Vendored

// PROBLEM: 'equals' should take 'Any?' as its argument
// FIX: none
interface F
val f = object : F {
fun <caret>equals(other: F?): Boolean {
return true
}
}