Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
codegen
/
box
/
inference
/
kt65882.kt
blob: e88ca1d2805d4612346a830a3c255352a210f870 [
file
]
fun
<
T
>
Any
?.
unsafeCast
():
T
=
this
as
T
fun
<
R
>
foo
(
returnType
:
String
):
R
{
return
when
{
returnType
==
"Nothing"
->
throw
Exception
()
else
->
null
.
unsafeCast
()
}
}
fun box
():
String
{
foo
<
String
>(
""
)
return
"OK"
}