Attempt to preserve partial substitution when detecting expected type for smart completion
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
fun foo() {
|
||||
listOf(1, 2).map { <caret> }
|
||||
}
|
||||
|
||||
// EXIST: "i ->"
|
||||
// EXIST: "i: Int ->"
|
||||
+6
@@ -1472,6 +1472,12 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("Map.kt")
|
||||
public void testMap() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smart/lambdaSignature/Map.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("MultipleParameters.kt")
|
||||
public void testMultipleParameters() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smart/lambdaSignature/MultipleParameters.kt");
|
||||
|
||||
Reference in New Issue
Block a user