FIR checker: report uninitialized member/extension properties

This commit is contained in:
Jinseong Jeon
2021-02-23 14:33:44 -08:00
committed by Dmitriy Novozhilov
parent e8028e7825
commit e009b71f88
63 changed files with 487 additions and 230 deletions
@@ -83,7 +83,7 @@ fun unknownRun(block: () -> Unit) = block()
class DefiniteInitializationInInitSection {
val x: Int
val y: Int
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>val y: Int<!>
init {
myRun { x = 42 }
@@ -60,7 +60,7 @@ fun nestedIndefiniteAssignment() {
}
class InitializationForbiddenInNonInitSection {
val x: Int
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>val x: Int<!>
fun setup() {
myRun { x = 42 }