Extract Function: Check for INVISIBLE_* errors during validation phase

#KT-4995 Fixed
This commit is contained in:
Alexey Sedunov
2014-08-07 20:23:40 +04:00
parent cb3328c052
commit 87de6cff23
10 changed files with 58 additions and 4 deletions
@@ -0,0 +1,9 @@
// SIBLING:
public class A {
class object {
private val t: Int = 1
}
fun f() {
<selection>t</selection>
}
}
@@ -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