Test for KT-1322 There's no autoimport suggested for traits

#KT-1322 Fixed
This commit is contained in:
Nikolay Krasko
2013-04-12 13:22:34 +04:00
parent 296bda2e3a
commit 2b8cac44bb
4 changed files with 22 additions and 0 deletions
@@ -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");
}
@TestMetadata("importTrait.before.Main.kt")
public void testImportTrait() throws Exception {
doTestWithExtraFile("idea/testData/quickfix/autoImports/importTrait.before.Main.kt");
}
@TestMetadata("noImportForFunInQualifiedNotFirst.before.Main.kt")
public void testNoImportForFunInQualifiedNotFirst() throws Exception {
doTestWithExtraFile("idea/testData/quickfix/autoImports/noImportForFunInQualifiedNotFirst.before.Main.kt");