Fixed KT-9496 FQ-class name inserted in type argument on copy/paste
#KT-9496 Fixed
This commit is contained in:
@@ -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>
|
||||
}
|
||||
+12
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user