Extract Function: Check for INVISIBLE_* errors during validation phase
#KT-4995 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// SIBLING:
|
||||
public class A {
|
||||
class object {
|
||||
private val t: Int = 1
|
||||
}
|
||||
fun f() {
|
||||
<selection>t</selection>
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Property A.t will become invisible after extraction
|
||||
@@ -0,0 +1,7 @@
|
||||
// SIBLING:
|
||||
public class A {
|
||||
private class B
|
||||
fun f() {
|
||||
<selection>val b: A.B</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Class A.B will become invisible after extraction
|
||||
@@ -0,0 +1,9 @@
|
||||
// SIBLING:
|
||||
class A {
|
||||
var t = 1
|
||||
private set
|
||||
|
||||
fun test() {
|
||||
<selection>t = 5</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Setter of property A.t will become invisible after extraction
|
||||
Reference in New Issue
Block a user