ChangeVisibilityFix: remove redundant property setter

#KT-33796 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-10-17 14:29:16 +09:00
committed by Dmitry Gridin
parent 48968c0fe2
commit 27eea882fb
6 changed files with 69 additions and 2 deletions
@@ -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"
}