Fixed KT-9496 FQ-class name inserted in type argument on copy/paste

#KT-9496 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-10-12 21:12:33 +03:00
parent f4e1f53549
commit d728417f7f
11 changed files with 60 additions and 11 deletions
@@ -0,0 +1,6 @@
// ERROR: Unresolved reference: list
import java.io.File
fun file() {
list.filterIsInstance<File>()
}
@@ -0,0 +1 @@
java.io.File
@@ -0,0 +1,5 @@
import java.io.File
fun file(list: List<Any>) {
<selection>list.filterIsInstance<File>()</selection>
}
@@ -0,0 +1,3 @@
fun file() {
<caret>
}
@@ -361,6 +361,12 @@ public class InsertImportOnPasteTestGenerated extends AbstractInsertImportOnPast
doTestCopy(fileName);
}
@TestMetadata("TypeArgForUnresolvedCall.kt")
public void testTypeArgForUnresolvedCall() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/copyPaste/imports/TypeArgForUnresolvedCall.kt");
doTestCopy(fileName);
}
@TestMetadata("TypeParameter.kt")
public void testTypeParameter() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/copyPaste/imports/TypeParameter.kt");
@@ -700,6 +706,12 @@ public class InsertImportOnPasteTestGenerated extends AbstractInsertImportOnPast
doTestCut(fileName);
}
@TestMetadata("TypeArgForUnresolvedCall.kt")
public void testTypeArgForUnresolvedCall() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/copyPaste/imports/TypeArgForUnresolvedCall.kt");
doTestCut(fileName);
}
@TestMetadata("TypeParameter.kt")
public void testTypeParameter() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/copyPaste/imports/TypeParameter.kt");