Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2a568be17b8f4a9af8f61b27d156c07d37c12fdc
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
controlFlowAnalysis
/
assignedInIfElse.kt
blob: 1a05094aa9f6ece80505019da132b793d2f6d009 [
file
]
// FIR_IDENTICAL
fun foo
(
arg
:
Boolean
)
{
val x
:
Int
if
(
arg
)
{
x
=
4
}
else
{
x
=
2
}
x
.
hashCode
()
class
Local
{
fun bar
()
{
x
.
hashCode
()
}
}
fun
local
():
Int
{
return
x
.
hashCode
()
}
}