Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
dataFlowInfoTraversal
/
TryFinally.fir.kt
blob: 6b04f80aca297dc0ba5c51351409cc5e48d79e18 [
file
]
// CHECK_TYPE
fun tryFinally
(
x
:
Int
?)
{
try
{
}
finally
{
x
!!
}
checkSubtype
<
Int
>(
x
)
}
fun tryCatchFinally
(
x
:
Int
?)
{
try
{
x
!!
}
catch
(
e
:
Exception
)
{
x
!!
}
finally
{
checkSubtype
<
Int
>(<!
ARGUMENT_TYPE_MISMATCH
!>
x
<!>)
x
!!
}
checkSubtype
<
Int
>(
x
)
}