[FIR] Fix incompatible KClass<Any> and callable reference Collection::class, ^KT-51272 Fixed

This commit is contained in:
Ivan Kochurkin
2022-02-15 22:07:32 +03:00
committed by teamcity
parent 31d9313c51
commit f751f13c4d
7 changed files with 51 additions and 3 deletions
@@ -2646,6 +2646,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/callableReference/callableReferenceAssignmentToVar.kt");
}
@Test
@TestMetadata("callableReferenceInWhenExpression.kt")
public void testCallableReferenceInWhenExpression() throws Exception {
runTest("compiler/testData/diagnostics/tests/callableReference/callableReferenceInWhenExpression.kt");
}
@Test
@TestMetadata("callableReferenceWithMostSpecificGenericTypeParameter.kt")
public void testCallableReferenceWithMostSpecificGenericTypeParameter() throws Exception {