FIR IDE: quickfix to add override keyword

Also enables more tests that covers previous quickfixes
This commit is contained in:
Tianyu Geng
2021-05-25 10:45:24 -07:00
committed by Ilya Kirillov
parent 1658f4433d
commit 90a0c9bb25
14 changed files with 28 additions and 4 deletions
+1
View File
@@ -5,3 +5,4 @@ open class A {
}
class B : A<caret> {}
/* IGNORE_FIR */
@@ -18,3 +18,4 @@ interface Z {
class B : A(), X, Y, Z {
override<caret> fun foo() {}
}
/* IGNORE_FIR */
@@ -16,3 +16,4 @@ class B(y: XX) : A(y) {
override<caret> fun foo() {
}
}
/* IGNORE_FIR */
@@ -16,3 +16,4 @@ class B() : Y {
override<caret> fun foo() {
}
}
/* IGNORE_FIR */
+2 -1
View File
@@ -5,4 +5,5 @@ open class A {
class B : A() {
override<caret> fun foo() {}
}
}
/* IGNORE_FIR */
@@ -7,4 +7,5 @@ fun test() {
val some = object : A() {
<caret>override fun foo() {}
}
}
}
/* IGNORE_FIR */
+2 -1
View File
@@ -5,4 +5,5 @@ open class A {
class B : A() {
override<caret> var x = 24;
}
}
/* IGNORE_FIR */
@@ -13,3 +13,4 @@ class B : A(), X {
return agr
}
}
/* IGNORE_FIR */
@@ -9,3 +9,4 @@ class B : A() {
return agr
}
}
/* IGNORE_FIR */