FIR checker: report uninitialized member/extension properties
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
e8028e7825
commit
e009b71f88
+1
-1
@@ -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 }
|
||||
|
||||
+1
-1
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user