KT-11679 Fixed exception at ResolvedCallImpl.getArgumentMapping()

#KT-11679 Fixed
Also fixed EA-75913 EA-78908
This commit is contained in:
Stanislav Erokhin
2016-06-21 16:29:33 +03:00
parent 7389d412a5
commit ad285d5ca2
3 changed files with 23 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// ERROR: Expression 'f' of type 'String' cannot be invoked as a function. The function 'invoke()' is not found
// IS_APPLICABLE: false
class Paren(val f: String) {
}
fun nonSimple() {
Paren("").f(<caret>6)
}
@@ -295,6 +295,12 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
doTest(fileName);
}
@TestMetadata("kt11679.kt")
public void testKt11679() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/addNameToArgument/kt11679.kt");
doTest(fileName);
}
@TestMetadata("notInsideIndices.kt")
public void testNotInsideIndices() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/addNameToArgument/notInsideIndices.kt");