Create from usage: Support static Java members
This commit is contained in:
+8
@@ -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)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class J {
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
class J {
|
||||
|
||||
public static int foo(@NotNull String s, int i) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create function 'foo'" "true"
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
fun test() {
|
||||
val a: Int = J.foo("1", 2)
|
||||
}
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create function 'foo'" "true"
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
fun test() {
|
||||
val a: Int = J.<caret>foo("1", 2)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class J {
|
||||
|
||||
}
|
||||
+7
@@ -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)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
interface J {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user