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 function 'foo'" "false"
// ACTION: Create function 'foo'
// ACTION: Split property declaration
// ERROR: Unresolved reference: foo
fun test() {
val a: Int = J.<caret>foo("1", 2)
}
@@ -0,0 +1,8 @@
import org.jetbrains.annotations.NotNull;
class J {
public static int foo(@NotNull String s, int i) {
return 0;
}
}
@@ -0,0 +1,7 @@
// "Create function 'foo'" "true"
// ERROR: Unresolved reference: foo
fun test() {
val a: Int = J.foo("1", 2)
}
@@ -0,0 +1,6 @@
// "Create function 'foo'" "true"
// ERROR: Unresolved reference: foo
fun test() {
val a: Int = J.<caret>foo("1", 2)
}
@@ -0,0 +1,7 @@
// "Create function 'foo'" "false"
// ACTION: Split property declaration
// ERROR: Unresolved reference: foo
fun test() {
val a: Int = J.<caret>foo("1", 2)
}