NI: Fix resolution ambiguity for references returned from lambda
^KT-32267 Fixed
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
534718794c
commit
caf02806d5
@@ -1856,11 +1856,21 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/kt32256.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt32267.kt")
|
||||
public void testKt32267() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/kt32267.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt7430_wrongClassOnLHS.kt")
|
||||
public void testKt7430_wrongClassOnLHS() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/kt7430_wrongClassOnLHS.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaResult.kt")
|
||||
public void testLambdaResult() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/lambdaResult.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("memberExtensionsImportedFromObjectsUnsupported.kt")
|
||||
public void testMemberExtensionsImportedFromObjectsUnsupported() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/memberExtensionsImportedFromObjectsUnsupported.kt");
|
||||
@@ -10230,6 +10240,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionToUnitForLastLambdaInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coercionToUnitReference.kt")
|
||||
public void testCoercionToUnitReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionToUnitReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coercionWithExpectedType.kt")
|
||||
public void testCoercionWithExpectedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.kt");
|
||||
|
||||
Generated
+15
@@ -1851,11 +1851,21 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/kt32256.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt32267.kt")
|
||||
public void testKt32267() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/kt32267.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt7430_wrongClassOnLHS.kt")
|
||||
public void testKt7430_wrongClassOnLHS() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/kt7430_wrongClassOnLHS.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaResult.kt")
|
||||
public void testLambdaResult() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/lambdaResult.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("memberExtensionsImportedFromObjectsUnsupported.kt")
|
||||
public void testMemberExtensionsImportedFromObjectsUnsupported() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/memberExtensionsImportedFromObjectsUnsupported.kt");
|
||||
@@ -10225,6 +10235,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionToUnitForLastLambdaInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coercionToUnitReference.kt")
|
||||
public void testCoercionToUnitReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionToUnitReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coercionWithExpectedType.kt")
|
||||
public void testCoercionWithExpectedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.kt");
|
||||
|
||||
Reference in New Issue
Block a user