mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
26 lines
561 B
Kotlin
26 lines
561 B
Kotlin
data class D(val x: Int) {}
|
|
|
|
data class E(val x: Int) {
|
|
override fun equals(other: Any?): Boolean {
|
|
return (other as? E)?.x == this.x
|
|
}
|
|
}
|
|
|
|
data class F(val x: Int) {
|
|
override fun equals(other: Any?): Boolean {
|
|
return other != null && other::class == this::class
|
|
}
|
|
}
|
|
|
|
data class G(val x: Int) {
|
|
override fun equals(other: Any?): Boolean {
|
|
return other != null && other.javaClass == this.javaClass
|
|
}
|
|
}
|
|
|
|
data class H(val x: Int) {
|
|
override fun equals(other: Any?): Boolean {
|
|
return other != null
|
|
}
|
|
}
|