ChangeVisibilityFix: remove redundant property setter
#KT-33796 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
48968c0fe2
commit
27eea882fb
@@ -0,0 +1,12 @@
|
||||
// "Make '<set-attribute>' internal" "true"
|
||||
// ACTION: "Make '<set-attribute>' public"
|
||||
|
||||
class Demo {
|
||||
var attribute = "a"
|
||||
private set
|
||||
}
|
||||
|
||||
fun main() {
|
||||
val c = Demo()
|
||||
<caret>c.attribute = "test"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Make '<set-attribute>' internal" "true"
|
||||
// ACTION: "Make '<set-attribute>' public"
|
||||
|
||||
class Demo {
|
||||
var attribute = "a"
|
||||
internal set
|
||||
}
|
||||
|
||||
fun main() {
|
||||
val c = Demo()
|
||||
c.attribute = "test"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Make '<set-attribute>' public" "true"
|
||||
// ACTION: "Make '<set-attribute>' internal"
|
||||
|
||||
class Demo {
|
||||
var attribute = "a"
|
||||
private set
|
||||
}
|
||||
|
||||
fun main() {
|
||||
val c = Demo()
|
||||
<caret>c.attribute = "test"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Make '<set-attribute>' public" "true"
|
||||
// ACTION: "Make '<set-attribute>' internal"
|
||||
|
||||
class Demo {
|
||||
var attribute = "a"
|
||||
}
|
||||
|
||||
fun main() {
|
||||
val c = Demo()
|
||||
<caret>c.attribute = "test"
|
||||
}
|
||||
Reference in New Issue
Block a user