KT-2258 Plugin does not suggest to import objects
#KT-2258 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: TestObject
|
||||
|
||||
package ccc
|
||||
|
||||
import bbb.TestObject
|
||||
|
||||
val x = TestObject
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: TestObject
|
||||
|
||||
package ccc
|
||||
|
||||
val x = <caret>TestObject
|
||||
@@ -0,0 +1,3 @@
|
||||
package bbb
|
||||
|
||||
object TestObject
|
||||
@@ -117,6 +117,11 @@ public class QuickFixMultiFileTestGenerated extends AbstractQuickFixMultiFileTes
|
||||
doTestWithExtraFile("idea/testData/quickfix/autoImports/noImportInSafeQualifiedExpressionNotFirst.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectImport.before.Main.kt")
|
||||
public void testObjectImport() throws Exception {
|
||||
doTestWithExtraFile("idea/testData/quickfix/autoImports/objectImport.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("packageClass.before.Main.kt")
|
||||
public void testPackageClass() throws Exception {
|
||||
doTestWithExtraFile("idea/testData/quickfix/autoImports/packageClass.before.Main.kt");
|
||||
|
||||
Reference in New Issue
Block a user