Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
smartCasts
/
propertyToNotNull.kt
blob: ea7b2718112513376a37a9840df0f6e09e8a2199 [
file
]
class
Immutable
(
val x
:
String
?)
{
fun foo
():
String
{
if
(
x
!=
null
)
return
<!
DEBUG_INFO_SMARTCAST
!>
x
<!>
return
""
}
}
class
Mutable
(
var
y
:
String
?)
{
fun foo
():
String
{
if
(
y
!=
null
)
return
<!
SMARTCAST_IMPOSSIBLE
!>
y
<!>
return
""
}
}