mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
17 lines
297 B
Kotlin
Vendored
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"
|
|
}
|
|
} |