Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
codegen
/
box
/
when
/
is.kt
blob: 3e1088b86560a98801c1b7cdda0e6431d27941ee [
file
]
// KJS_WITH_FULL_RUNTIME
fun typeName
(
a
:
Any
?)
:
String
{
return
when
(
a
)
{
is
ArrayList
<*>
->
"array list"
else
->
"no idea"
}
}
fun box
()
:
String
{
if
(
typeName
(
ArrayList
<
Int
>())
!=
"array list"
)
return
"array list failed"
return
"OK"
}