Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
casts
/
notIs.kt
blob: 8e377707350211d1272719964360e9e8ebc28dcf [
file
]
// TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
fun foo
(
x
:
Any
)
=
x
!
is
Runnable
fun box
():
String
{
val r
=
object
:
Runnable
{
override
fun run
()
{}
}
return
if
(!
foo
(
r
)
&&
foo
(
42
))
"OK"
else
"Fail"
}