Check function arguments of nested unsuccessful calls.
This commit is contained in:
@@ -400,6 +400,7 @@ public class CandidateResolver {
|
|||||||
context.resolutionResultsCache.getDeferredComputation(keyExpression);
|
context.resolutionResultsCache.getDeferredComputation(keyExpression);
|
||||||
if (storedContextForArgument != null) {
|
if (storedContextForArgument != null) {
|
||||||
completeNestedCallsForNotResolvedInvocation(storedContextForArgument);
|
completeNestedCallsForNotResolvedInvocation(storedContextForArgument);
|
||||||
|
argumentTypeResolver.checkTypesForFunctionArgumentsWithNoCallee(storedContextForArgument.replaceBindingTrace(context.trace));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
package c
|
||||||
|
|
||||||
|
fun demo() {
|
||||||
|
val bar = 51
|
||||||
|
fun map(f : <!SYNTAX!><!SYNTAX!><!>fun<!>
|
||||||
|
val foo = 3;
|
||||||
|
bar <!NONE_APPLICABLE!>+<!> map { foo }
|
||||||
|
}
|
||||||
@@ -3104,6 +3104,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
|||||||
doTest("compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.kt");
|
doTest("compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/checkBackingFieldException.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("completeFunctionArgumentsOfNestedCalls.kt")
|
||||||
|
public void testCompleteFunctionArgumentsOfNestedCalls() throws Exception {
|
||||||
|
doTest("compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/completeFunctionArgumentsOfNestedCalls.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("funEquals.kt")
|
@TestMetadata("funEquals.kt")
|
||||||
public void testFunEquals() throws Exception {
|
public void testFunEquals() throws Exception {
|
||||||
doTest("compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/funEquals.kt");
|
doTest("compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/funEquals.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user