Checked that import popup now works for callable references

This commit is contained in:
Valentin Kipyatkov
2015-10-01 21:34:47 +03:00
parent e562c019f9
commit 836d116786
7 changed files with 34 additions and 0 deletions
@@ -0,0 +1,5 @@
import dependency.extensionFun
// "Import" "true"
// ERROR: Unresolved reference: extensionFun
val v = String::extensionFun<caret>
@@ -0,0 +1,3 @@
package dependency
fun String.extensionFun(){}
@@ -0,0 +1,3 @@
// "Import" "true"
// ERROR: Unresolved reference: extensionFun
val v = String::extensionFun<caret>
@@ -0,0 +1,5 @@
import dependency.topLevelFun
// "Import" "true"
// ERROR: Unresolved reference: topLevelFun
val v = ::topLevelFun<caret>
@@ -0,0 +1,3 @@
package dependency
fun topLevelFun(){}
@@ -0,0 +1,3 @@
// "Import" "true"
// ERROR: Unresolved reference: topLevelFun
val v = ::topLevelFun<caret>
@@ -65,6 +65,18 @@ public class QuickFixMultiFileTestGenerated extends AbstractQuickFixMultiFileTes
doTestWithExtraFile(fileName);
}
@TestMetadata("callableReferenceExtension.before.Main.kt")
public void testCallableReferenceExtension() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/callableReferenceExtension.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("callableReferenceTopLevel.before.Main.kt")
public void testCallableReferenceTopLevel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/callableReferenceTopLevel.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("classImport.before.Main.kt")
public void testClassImport() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/autoImports/classImport.before.Main.kt");