Files
Vladimir Dolzhenko 1697b4cdc6 [kotlin] Use IGNORE_K2 instead of IGNORE_FIR
GitOrigin-RevId: e380b6203a00315f718b7e08d1048ec284dce1a3
2023-08-30 11:02:38 +00:00

24 lines
533 B
Plaintext

// ERROR: Unresolved reference: javaClass
// ERROR: Unresolved reference: javaClass
class WithConstructor(x: Int, s: String) {
val x: Int = 0
val s: String = ""
class Boolean
override fun hashCode(): Int = 1
override fun equals(other: Any?): kotlin.Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as WithConstructor
if (x != other.x) return false
if (s != other.s) return false
return true
}
}
// IGNORE_K2