[FIR] Add checker for uninitialized properties
This commit is contained in:
@@ -4,7 +4,7 @@ package kt455
|
||||
|
||||
fun foo() {
|
||||
val a: Int
|
||||
doSmth(a) //error
|
||||
doSmth(a) //no repeat error
|
||||
doSmth(<!UNINITIALIZED_VARIABLE!>a<!>) //error
|
||||
doSmth(<!UNINITIALIZED_VARIABLE!>a<!>) //no repeat error
|
||||
}
|
||||
fun doSmth(i: Int) {}
|
||||
|
||||
Reference in New Issue
Block a user