FIR IDE: Add quickfix for INAPPLICABLE_LATEINIT_MODIFIER.

Also changed FE1.0 checker and all related fix factories to report error
on the declaration instead of the lateinit modifier. This is consistent
with the direction of all checkers in FIR (no reporting on modifiers).
This commit is contained in:
Mark Punzalan
2021-02-12 21:56:39 +00:00
committed by Ilya Kirillov
parent b1ab64e854
commit 4e44804c77
18 changed files with 78 additions and 32 deletions
@@ -1,3 +1,5 @@
// FIR_COMPARISON
class C<V>() {
<error descr="[INAPPLICABLE_LATEINIT_MODIFIER] 'lateinit' modifier is not allowed on properties of a type with nullable upper bound">lateinit</error> var item: V
}
+2 -1
View File
@@ -2,4 +2,5 @@
class A() {
<caret>lateinit val foo: String
}
}
/* FIR_COMPARISON */
+2 -1
View File
@@ -2,4 +2,5 @@
class A() {
<caret>lateinit var foo: String
}
}
/* FIR_COMPARISON */