[NI] Add missing diagnostic on callable references in fake calls

Unresolved reference diagnositc was not reported on callable references
returned from if or when expression because of additional block wrapper.

^KT-30953 Fixed
This commit is contained in:
Pavel Kirpichenkov
2019-11-25 18:26:26 +03:00
parent eb73650209
commit cf82efb49f
6 changed files with 63 additions and 2 deletions
@@ -17813,6 +17813,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/resolve/anonymousObjectFromTopLevelMember.kt");
}
@TestMetadata("callableReferenceInCST.kt")
public void testCallableReferenceInCST() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/callableReferenceInCST.kt");
}
@TestMetadata("capturedTypesInLambdaParameter.kt")
public void testCapturedTypesInLambdaParameter() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/capturedTypesInLambdaParameter.kt");
@@ -17803,6 +17803,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
runTest("compiler/testData/diagnostics/tests/resolve/anonymousObjectFromTopLevelMember.kt");
}
@TestMetadata("callableReferenceInCST.kt")
public void testCallableReferenceInCST() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/callableReferenceInCST.kt");
}
@TestMetadata("capturedTypesInLambdaParameter.kt")
public void testCapturedTypesInLambdaParameter() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/capturedTypesInLambdaParameter.kt");