Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ba045e44fbc13a4a8bcfa03689115fd0a25366a9
/
.
/
compiler
/
testData
/
codegen
/
box
/
package
/
checkCast.kt
blob: ffdfa30042b22835c90cbedd102f407473f2cb68 [
file
] [
log
] [
blame
]
class
C
(
val x
:
Int
)
{
override
fun equals
(
rhs
:
Any
?):
Boolean
{
if
(
rhs
is
C
)
{
val rhsC
=
rhs
as
C
return
rhsC
.
x
==
x
}
return
false
}
}
fun box
():
String
{
val c1
=
C
(
10
)
val c2
=
C
(
10
)
return
if
(
c1
==
c2
)
"OK"
else
"fail"
}