Renamed test data folder
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import lib.JavaClass
|
||||
|
||||
fun test() = JavaClass().foo(<caret>)
|
||||
|
||||
// ABSENT: p0
|
||||
// ABSENT: paramName
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package lib;
|
||||
|
||||
public class JavaClass {
|
||||
public void foo(int paramName) {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import lib.KotlinClass
|
||||
|
||||
fun test() = KotlinClass().foo(<caret>)
|
||||
|
||||
// ABSENT: p0
|
||||
// EXIST: { lookupString:"paramName", itemText:"paramName =" }
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package lib
|
||||
|
||||
class KotlinClass {
|
||||
fun foo(paramName: String) {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import lib.JavaClass
|
||||
|
||||
class KotlinClass : JavaClass()
|
||||
|
||||
fun test() = KotlinClass().<caret>
|
||||
|
||||
// EXIST: { lookupString: "execute", itemText: "execute", tailText: "(Runnable!, Int)", typeText: "Unit", attributes: "" }
|
||||
// EXIST: { lookupString: "execute", itemText: "execute", tailText: "((() -> Unit)!, Int)", typeText: "Unit", attributes: "" }
|
||||
@@ -0,0 +1,8 @@
|
||||
import lib.*;
|
||||
|
||||
fun foo(j: JavaInterface<String>) {
|
||||
j.<caret>
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "execute", itemText: "execute", tailText: "(Task<String!>!, K!)", typeText: "String!", attributes: "bold" }
|
||||
// EXIST: { lookupString: "execute", itemText: "execute", tailText: "(((String!) -> Unit)!, K!)", typeText: "String!", attributes: "bold" }
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package lib;
|
||||
|
||||
public interface JavaInterface<T> {
|
||||
<K> T execute(Task<T> task, K k);
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package lib;
|
||||
|
||||
public interface Task<T> {
|
||||
void run(T t);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package lib;
|
||||
|
||||
public class JavaClass {
|
||||
public void execute(Runnable runnable, int x) {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package testing
|
||||
|
||||
fun someFun() {
|
||||
1.abcd<caret>
|
||||
}
|
||||
|
||||
// EXIST: abcdCCC3, abcdDDD4
|
||||
// ABSENT: abcdAAA1, abcdBBB2
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package abc
|
||||
|
||||
public fun abcdAAA1(): Unit {}
|
||||
|
||||
public fun abcdBBB2(i: Int) {}
|
||||
|
||||
public fun Int.abcdCCC3() {}
|
||||
|
||||
public fun Int.abcdDDD4(i: Int) {}
|
||||
@@ -0,0 +1,8 @@
|
||||
package testing
|
||||
|
||||
fun someFun() {
|
||||
"".hello<caret>
|
||||
}
|
||||
|
||||
// EXIST: helloProp1, helloProp2
|
||||
// ABSENT: helloProp3, helloProp4
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package abc
|
||||
|
||||
public val String.helloProp1: Int get() = 1
|
||||
public val String.helloProp2: Int get() = 2
|
||||
public val Int.helloProp3: Int get() = 3
|
||||
public val helloProp4: Int = 4
|
||||
@@ -0,0 +1,8 @@
|
||||
package testing
|
||||
|
||||
fun someFun() {
|
||||
abcd<caret>
|
||||
}
|
||||
|
||||
// EXIST: abcdAAA1, abcdBBB2
|
||||
// ABSENT: abcdCCC3, abcdDDD4
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package abc
|
||||
|
||||
public fun abcdAAA1(): Unit {}
|
||||
|
||||
public fun abcdBBB2(i: Int) {}
|
||||
|
||||
public fun Int.abcdCCC3() {}
|
||||
|
||||
public fun Int.abcdDDD4(i: Int) {}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun foo() {
|
||||
glob<caret>
|
||||
}
|
||||
|
||||
// EXIST: "globalProperty"
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package foo.bar
|
||||
|
||||
public val globalProperty: Int = 1
|
||||
Reference in New Issue
Block a user