Attempt to preserve partial substitution when detecting expected type for smart completion

This commit is contained in:
Valentin Kipyatkov
2017-03-19 18:22:54 +03:00
parent b5dd2cc540
commit 3ec28f1242
3 changed files with 31 additions and 11 deletions
@@ -0,0 +1,6 @@
fun foo() {
listOf(1, 2).map { <caret> }
}
// EXIST: "i ->"
// EXIST: "i: Int ->"
@@ -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");