FIR IDE: Add quickfix for PRIVATE_SETTER_FOR_(OPEN|ABSTRACT)_PROPERTY

This commit is contained in:
Tianyu Geng
2021-02-18 14:00:13 -08:00
committed by Ilya Kirillov
parent 77559e8299
commit bca393bd5c
15 changed files with 107 additions and 18 deletions
@@ -0,0 +1,6 @@
// "Remove 'private' modifier" "true"
abstract class My {
abstract var foo: Int
<caret>private set
}
/* FIR_COMPARISON */
@@ -0,0 +1,6 @@
// "Remove 'private' modifier" "true"
abstract class My {
abstract var foo: Int
set
}
/* FIR_COMPARISON */
@@ -2,4 +2,5 @@
open class My {
open var foo = 42
<caret>private set
}
}
/* FIR_COMPARISON */
@@ -2,4 +2,5 @@
open class My {
var foo = 42
<caret>private set
}
}
/* FIR_COMPARISON */
@@ -0,0 +1,6 @@
// "Remove 'private' modifier" "true"
open class My {
open var foo = 42
<caret>private set
}
/* FIR_COMPARISON */
@@ -0,0 +1,6 @@
// "Remove 'private' modifier" "true"
open class My {
open var foo = 42
<caret>set
}
/* FIR_COMPARISON */
@@ -6,4 +6,5 @@ interface Foo {
open class FooImpl : Foo {
override var bar: String = ""
<caret>private set
}
}
/* FIR_COMPARISON */
@@ -6,4 +6,5 @@ interface Foo {
open class FooImpl : Foo {
final override var bar: String = ""
<caret>private set
}
}
/* FIR_COMPARISON */
@@ -0,0 +1,10 @@
// "Remove 'private' modifier" "true"
interface Foo {
val bar: String
}
open class FooImpl : Foo {
override var bar: String = ""
<caret>private set
}
/* FIR_COMPARISON */
@@ -0,0 +1,10 @@
// "Remove 'private' modifier" "true"
interface Foo {
val bar: String
}
open class FooImpl : Foo {
override var bar: String = ""
<caret>set
}
/* FIR_COMPARISON */