Revert "FIR: Report CAPTURED_VAL_INITIALIZATION if initialization is done"

This reverts commit 1c4023fda5.

#KT-64854 Submitted
#KT-59906 Submitted
This commit is contained in:
Mikhail Glukhikh
2024-03-12 11:38:34 +01:00
committed by Space Team
parent 0fe793943d
commit 0b34d66b87
7 changed files with 10 additions and 149 deletions
@@ -86,7 +86,7 @@ class DefiniteInitializationInInitSection {
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>val y: Int<!>
init {
myRun { <!CAPTURED_VAL_INITIALIZATION!>x<!> = 42 }
myRun { x = 42 }
unknownRun { <!CAPTURED_MEMBER_VAL_INITIALIZATION!>y<!> = 239 }
}
}