5cb949ad7f
In 1.3, due to changes in language, testdata for some tests can be different from 1.2 We want to simlultaneously test both versions, so instead of fixing language version in such tests, we split them into two: one with fixed 1.2, another with fixed 1.3
18 lines
361 B
Kotlin
Vendored
18 lines
361 B
Kotlin
Vendored
// !LANGUAGE: -ReadDeserializedContracts -UseCallsInPlaceEffect
|
|
// 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"
|
|
}
|
|
} |