Files
Nikita Bobko 965061ee55 ConvertObjectToDataObjectInspection: fix "!is" case
^KTIJ-24348 Fixed

IJ-MR-101834

GitOrigin-RevId: 5ff6a9d8bc664facb0b0d738f779a07854926dd4
2023-01-25 14:49:10 +00:00

7 lines
193 B
Kotlin

// COMPILER_ARGUMENTS: -XXLanguage:+DataObjects
// PROBLEM: none
object<caret> Foo {
override fun toString(): String = "Foo"
override fun equals(other: Any?): Boolean = other !is Foo
}