More tests
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
fun String.foo(c: Char){}
|
||||
|
||||
class C {
|
||||
fun foo(i: Int){}
|
||||
|
||||
fun bar(foo: (String) -> Unit, p1: String, p2: Int, p3: Char) {
|
||||
foo(<caret>)
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: p1
|
||||
// EXIST: p2
|
||||
// ABSENT: p3
|
||||
@@ -0,0 +1,13 @@
|
||||
fun String.foo(c: Char){}
|
||||
|
||||
class C {
|
||||
fun foo(i: Int){}
|
||||
|
||||
fun bar(foo: String.(String) -> Unit, p1: String, p2: Int, p3: Char) {
|
||||
foo(<caret>)
|
||||
}
|
||||
}
|
||||
|
||||
// ABSENT: p1
|
||||
// EXIST: p2
|
||||
// ABSENT: p3
|
||||
@@ -0,0 +1,13 @@
|
||||
fun String.foo(c: Char){}
|
||||
|
||||
class C {
|
||||
fun foo(i: Int){}
|
||||
|
||||
fun bar(foo: String.(String) -> Unit, p1: String, p2: Int, p3: Char) {
|
||||
"".foo(<caret>)
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: p1
|
||||
// ABSENT: p2
|
||||
// EXIST: p3
|
||||
@@ -698,6 +698,18 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("VariableAsFunction1.kt")
|
||||
public void testVariableAsFunction1() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/smart/VariableAsFunction1.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("VariableAsFunction3.kt")
|
||||
public void testVariableAsFunction3() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/smart/VariableAsFunction3.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("VariableInitializer.kt")
|
||||
public void testVariableInitializer() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/smart/VariableInitializer.kt");
|
||||
|
||||
Reference in New Issue
Block a user