FIR IDE: Add quickfix for PRIVATE_SETTER_FOR_(OPEN|ABSTRACT)_PROPERTY
This commit is contained in:
committed by
Ilya Kirillov
parent
77559e8299
commit
bca393bd5c
@@ -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
-1
@@ -2,4 +2,5 @@
|
||||
open class My {
|
||||
open var foo = 42
|
||||
<caret>private set
|
||||
}
|
||||
}
|
||||
/* FIR_COMPARISON */
|
||||
+2
-1
@@ -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 */
|
||||
+2
-1
@@ -6,4 +6,5 @@ interface Foo {
|
||||
open class FooImpl : Foo {
|
||||
override var bar: String = ""
|
||||
<caret>private set
|
||||
}
|
||||
}
|
||||
/* FIR_COMPARISON */
|
||||
+2
-1
@@ -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 */
|
||||
Reference in New Issue
Block a user