Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
controlFlowAnalysis
/
kt2369.kt
blob: b7bc931bd21914adeb58218dc8120b0f47583242 [
file
]
// FIR_IDENTICAL
//KT-2369 Variable is not marked as uninitialized in 'finally' section
fun main
()
{
var
x
:
Int
try
{
throw
Exception
()
}
finally
{
doSmth
(<!
UNINITIALIZED_VARIABLE
!>
x
<!>
+
1
)
}
}
fun doSmth
(
a
:
Any
?)
=
a