mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
18 lines
320 B
Kotlin
Vendored
18 lines
320 B
Kotlin
Vendored
// !LANGUAGE: +ReadDeserializedContracts +UseCallsInPlaceEffect
|
|
// See KT-17479
|
|
|
|
class Test {
|
|
val str: String
|
|
init {
|
|
run {
|
|
this@Test.str = "A"
|
|
}
|
|
|
|
run {
|
|
// Not sure do we need diagnostic also here
|
|
this@Test.str = "B"
|
|
}
|
|
|
|
str = "C"
|
|
}
|
|
} |