KT-14370 Completion inserts fully qualified name for any Java interface with single abstract method (SAM-interface)
#KT-14370 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
fun f() {
|
||||
Cal<caret>
|
||||
}
|
||||
|
||||
// ELEMENT: "Callable"
|
||||
@@ -0,0 +1,7 @@
|
||||
import java.util.concurrent.Callable
|
||||
|
||||
fun f() {
|
||||
Callable<caret>
|
||||
}
|
||||
|
||||
// ELEMENT: "Callable"
|
||||
+6
@@ -113,6 +113,12 @@ public class BasicCompletionHandlerTestGenerated extends AbstractBasicCompletion
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("JavaSAM.kt")
|
||||
public void testJavaSAM() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/JavaSAM.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("KT11633.kt")
|
||||
public void testKT11633() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/KT11633.kt");
|
||||
|
||||
Reference in New Issue
Block a user