Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
smartCasts
/
smartCastOnLastExpressionOfLambdaAfterNothing.fir.kt
blob: 77433a8e0a5cd0d2c9ad37171dfd52df6e13b728 [
file
]
// DIAGNOSTICS: -UNUSED_PARAMETER
class
Inv
<
T
>
fun
<
T
>
foo
(
f
:
()
->
T
):
Inv
<
T
>
=
TODO
()
fun myExit
():
Nothing
=
TODO
()
fun test
(
x
:
String
?):
Inv
<
String
>
{
return
foo
{
if
(
x
==
null
)
myExit
()
x
}
}