Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
smartCasts
/
kt3993.kt
blob: 903af22d07e630f25694a42b5272817f41fcb5e1 [
file
]
class
User
(
val login
:
Boolean
)
{}
fun currentAccess
(
user
:
User
?):
Int
{
return
when
{
user
==
null
->
0
// We should get smartcast here
<!
DEBUG_INFO_SMARTCAST
!>
user
<!>.
login
->
1
else
->
-
1
}
}