Added a test
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
|||||||
|
package second
|
||||||
|
|
||||||
|
fun (String.() -> Unit)?.helloFun1() {
|
||||||
|
}
|
||||||
|
|
||||||
|
fun Function0<Unit>.helloFun2() {
|
||||||
|
}
|
||||||
|
|
||||||
|
fun ExtensionFunction0<String, Unit>.helloFun3() {
|
||||||
|
}
|
||||||
|
|
||||||
|
fun ExtensionFunction0<Int, Unit>.helloFun4() {
|
||||||
|
}
|
||||||
|
|
||||||
|
fun Function1<String, Unit>.helloFun5() {
|
||||||
|
}
|
||||||
|
|
||||||
|
fun Any.helloAny() {
|
||||||
|
}
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
package first
|
||||||
|
|
||||||
|
fun firstFun(p: String.() -> Unit) {
|
||||||
|
p.hello<caret>
|
||||||
|
}
|
||||||
|
|
||||||
|
// EXIST: helloFun1
|
||||||
|
// ABSENT: helloFun2
|
||||||
|
// EXIST: helloFun3
|
||||||
|
// ABSENT: helloFun4
|
||||||
|
// ABSENT: helloFun5
|
||||||
|
// EXIST: helloAny
|
||||||
|
// NUMBER: 3
|
||||||
+6
@@ -150,6 +150,12 @@ public class MultiFileJvmBasicCompletionTestGenerated extends AbstractMultiFileJ
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("NotImportedExtensionFunction3")
|
||||||
|
public void testNotImportedExtensionFunction3() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/basic/multifile/NotImportedExtensionFunction3/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("NotImportedExtensionFunctionAndAlias")
|
@TestMetadata("NotImportedExtensionFunctionAndAlias")
|
||||||
public void testNotImportedExtensionFunctionAndAlias() throws Exception {
|
public void testNotImportedExtensionFunctionAndAlias() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/basic/multifile/NotImportedExtensionFunctionAndAlias/");
|
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/basic/multifile/NotImportedExtensionFunctionAndAlias/");
|
||||||
|
|||||||
Reference in New Issue
Block a user