KT-12104: Fix smart completion for argument of implicit invoke
#KT-12104 fixed
This commit is contained in:
committed by
Simon Ogorodnik
parent
8077a71aec
commit
fa3f87492c
@@ -0,0 +1,6 @@
|
||||
fun foo(actions: List<(String) -> Unit>) {
|
||||
actions[0](<caret>)
|
||||
}
|
||||
|
||||
// EXIST: {"lookupString":"String","tailText":"() (kotlin)","itemText":"String"}
|
||||
// EXIST: {"lookupString":"toString","tailText":"() (kotlin)","typeText":"String","itemText":"String.toString"}
|
||||
+6
@@ -204,6 +204,12 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("ImplicitInvoke.kt")
|
||||
public void testImplicitInvoke() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smart/ImplicitInvoke.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("ImplicitlyTypedFunBody.kt")
|
||||
public void testImplicitlyTypedFunBody() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smart/ImplicitlyTypedFunBody.kt");
|
||||
|
||||
Reference in New Issue
Block a user