Create from usage: Support static Java members

This commit is contained in:
Alexey Sedunov
2015-02-16 16:26:22 +03:00
parent 19fc9adffa
commit 5cd477279b
26 changed files with 192 additions and 21 deletions
@@ -0,0 +1,8 @@
// "Create extension property 'foo'" "false"
// ACTION: Create property 'foo'
// ACTION: Split property declaration
// ERROR: Unresolved reference: foo
fun test() {
val a: Int = J.<caret>foo
}
@@ -0,0 +1,4 @@
class J {
public static final int foo;
}
@@ -0,0 +1,7 @@
// "Create property 'foo'" "true"
// ERROR: Unresolved reference: foo
fun test() {
val a: Int = J.foo
}
@@ -0,0 +1,6 @@
// "Create property 'foo'" "true"
// ERROR: Unresolved reference: foo
fun test() {
val a: Int = J.<caret>foo
}
@@ -0,0 +1,7 @@
// "Create property 'foo'" "true"
// ERROR: Unresolved reference: foo
fun test() {
val a: Int = J.foo
}
@@ -0,0 +1,6 @@
// "Create property 'foo'" "true"
// ERROR: Unresolved reference: foo
fun test() {
val a: Int = J.<caret>foo
}
@@ -0,0 +1,6 @@
// "Create property 'foo'" "false"
// ERROR: Unresolved reference: foo
fun test() {
J.<caret>foo = 1
}