Add test for KT-17479 looks like #KT-17479 Fixed
(after CAPTURED_MEMBER_VAL_INITIALIZATION introduction)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
28283bad3e
commit
b5d0de7c3f
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user