Quick fix renamed: ChangePrivateTopLevelToInternal --> IncreaseVisibility
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
internal fun f(): Int = 10
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Make f internal" "true"
|
||||
// ERROR: Cannot access 'f': it is 'private' in file
|
||||
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
val x = f()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
private fun f(): Int = 10
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Make f internal" "true"
|
||||
// ERROR: Cannot access 'f': it is 'private' in file
|
||||
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
val x = <caret>f()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
internal val prop: Int = 10
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Make prop internal" "true"
|
||||
// ERROR: Cannot access 'prop': it is 'private' in file
|
||||
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
val x = prop
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
private val prop: Int = 10
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Make prop internal" "true"
|
||||
// ERROR: Cannot access 'prop': it is 'private' in file
|
||||
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
val x = <caret>prop
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
internal var prop: Int = 10
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Make prop internal" "true"
|
||||
// ERROR: Cannot access 'prop': it is 'private' in file
|
||||
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
prop = 20
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
private var prop: Int = 10
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Make prop internal" "true"
|
||||
// ERROR: Cannot access 'prop': it is 'private' in file
|
||||
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
<caret>prop = 20
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
package test
|
||||
|
||||
var prop: Int = 10
|
||||
internal set(value: Int) {}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Make <set-prop> internal" "true"
|
||||
// ERROR: Cannot assign to 'prop': the setter is private in file
|
||||
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
prop = 20
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
package test
|
||||
|
||||
var prop: Int = 10
|
||||
private set(value: Int) {}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// "Make <set-prop> internal" "true"
|
||||
// ERROR: Cannot assign to 'prop': the setter is private in file
|
||||
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
<caret>prop = 20
|
||||
}
|
||||
Reference in New Issue
Block a user