Test for KT-1322 There's no autoimport suggested for traits
#KT-1322 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
// "Import" "true"
|
||||||
|
// ERROR: Unresolved reference: TestTrait
|
||||||
|
|
||||||
|
import importTrait.data.TestTrait
|
||||||
|
|
||||||
|
fun test() {
|
||||||
|
val a = <caret>TestTrait
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// "Import" "true"
|
||||||
|
// ERROR: Unresolved reference: TestTrait
|
||||||
|
|
||||||
|
fun test() {
|
||||||
|
val a = <caret>TestTrait
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
package importTrait.data
|
||||||
|
|
||||||
|
trait TestTrait
|
||||||
@@ -82,6 +82,11 @@ public class QuickFixMultiFileTestGenerated extends AbstractQuickFixMultiFileTes
|
|||||||
doTestWithExtraFile("idea/testData/quickfix/autoImports/importInFirstPartInUserType.before.Main.kt");
|
doTestWithExtraFile("idea/testData/quickfix/autoImports/importInFirstPartInUserType.before.Main.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("importTrait.before.Main.kt")
|
||||||
|
public void testImportTrait() throws Exception {
|
||||||
|
doTestWithExtraFile("idea/testData/quickfix/autoImports/importTrait.before.Main.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("noImportForFunInQualifiedNotFirst.before.Main.kt")
|
@TestMetadata("noImportForFunInQualifiedNotFirst.before.Main.kt")
|
||||||
public void testNoImportForFunInQualifiedNotFirst() throws Exception {
|
public void testNoImportForFunInQualifiedNotFirst() throws Exception {
|
||||||
doTestWithExtraFile("idea/testData/quickfix/autoImports/noImportForFunInQualifiedNotFirst.before.Main.kt");
|
doTestWithExtraFile("idea/testData/quickfix/autoImports/noImportForFunInQualifiedNotFirst.before.Main.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user