mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
20 lines
448 B
Kotlin
20 lines
448 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
|
|
}
|
|
}
|