Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
controlFlowAnalysis
/
kt6788.kt
blob: 1adb2ece935b87d686031ea2664ba1a22cae224b [
file
]
class
A
(
val
next
:
A
?
=
null
)
{
<!
MUST_BE_INITIALIZED_OR_BE_ABSTRACT
!>
val x
:
String
<!>
init
{
<!
VAL_REASSIGNMENT
!>
next
?.
x
<!>
=
"a"
}
}
class
B
(
val
next
:
B
?
=
null
)
{
var
x
:
String
=
next
?.
x
?:
"default"
// it's ok to use `x` of next
}