FIR IDE: Enable add initializer quickfix for MUST_BE_INITIALIZED.

This commit is contained in:
Mark Punzalan
2021-06-05 06:47:48 +00:00
committed by teamcityserver
parent bb2246ebaf
commit befa8aaac7
14 changed files with 23 additions and 29 deletions
@@ -2,5 +2,4 @@
class A {
<caret>var n: Int
get() = 1
}
/* IGNORE_FIR */
}
@@ -2,5 +2,4 @@
class A {
var n: Int = <selection>0</selection><caret>
get() = 1
}
/* IGNORE_FIR */
}
@@ -2,5 +2,4 @@
class A {
<caret>var n: Int
set(value: Int) {}
}
/* IGNORE_FIR */
}
@@ -2,5 +2,4 @@
class A {
var n: Int = <selection>0</selection><caret>
set(value: Int) {}
}
/* IGNORE_FIR */
}
+1 -2
View File
@@ -1,3 +1,2 @@
// "Add initializer" "true"
<caret>val n: Int
/* IGNORE_FIR */
<caret>val n: Int
@@ -1,3 +1,2 @@
// "Add initializer" "true"
val n: Int = <selection>0</selection><caret>
/* IGNORE_FIR */
val n: Int = <selection>0</selection><caret>
@@ -1,5 +1,4 @@
// "Add initializer" "true"
// WITH_RUNTIME
class A
<caret>var label: A
/* IGNORE_FIR */
<caret>var label: A
@@ -1,5 +1,4 @@
// "Add initializer" "true"
// WITH_RUNTIME
class A
var label: A = TODO()
/* IGNORE_FIR */
var label: A = TODO()
@@ -1,4 +1,3 @@
// "Add initializer" "true"
<caret>var n: Int
get() = 1
/* IGNORE_FIR */
get() = 1
@@ -1,4 +1,3 @@
// "Add initializer" "true"
var n: Int = <selection>0</selection><caret>
get() = 1
/* IGNORE_FIR */
get() = 1
@@ -1,4 +1,3 @@
// "Add initializer" "true"
<caret>var n: Int
set(value: Int) {}
/* IGNORE_FIR */
set(value: Int) {}
@@ -1,4 +1,3 @@
// "Add initializer" "true"
var n: Int = <selection>0</selection><caret>
set(value: Int) {}
/* IGNORE_FIR */
set(value: Int) {}