Take into account excluded fq-names when determining whether type has been imported by default.

Related to #KT-13447
This commit is contained in:
Ilya Gorbunov
2016-08-16 19:35:11 +03:00
parent e34bc30bd7
commit d845092b20
4 changed files with 20 additions and 3 deletions
@@ -0,0 +1,7 @@
fun some(e: IllegalArgumentException<caret>) {
}
// INVOCATION_COUNT: 2
// WITH_ORDER
// EXIST: { lookupString:"IllegalArgumentException", typeText:"public typealias IllegalArgumentException = IllegalArgumentException defined in kotlin" }
// EXIST: { lookupString:"IllegalArgumentException", tailText:" (java.lang)" }
@@ -2755,6 +2755,12 @@ public class JvmBasicCompletionTestGenerated extends AbstractJvmBasicCompletionT
doTest(fileName);
}
@TestMetadata("StandardKotlinTypeAliasFirst.kt")
public void testStandardKotlinTypeAliasFirst() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/java/StandardKotlinTypeAliasFirst.kt");
doTest(fileName);
}
@TestMetadata("TopLevelFromStandardLibrary.kt")
public void testTopLevelFromStandardLibrary() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/java/TopLevelFromStandardLibrary.kt");