Files
kotlin/compiler/testData/diagnostics/tests/controlFlowAnalysis/initializationInLocalViaExplicitThis.kt
Mikhail Glukhikh b5d0de7c3f Add test for KT-17479 looks like #KT-17479 Fixed
(after CAPTURED_MEMBER_VAL_INITIALIZATION introduction)
2017-05-02 19:59:43 +03:00

17 lines
297 B
Kotlin
Vendored

// See KT-17479
class Test {
val str: String
init {
run {
<!CAPTURED_MEMBER_VAL_INITIALIZATION!>this@Test.str<!> = "A"
}
run {
// Not sure do we need diagnostic also here
this@Test.str = "B"
}
str = "C"
}
}