[FIR] Don't capture flexible types that only have projections in one bound
This fixes a false positive NEW_INFERENCE_ERROR. See the code comment for the rationale. #KT-63982 Fixed
This commit is contained in:
committed by
Space Team
parent
eaa93b2582
commit
476a0b6783
+6
@@ -16430,6 +16430,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/kt62609.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt63982.kt")
|
||||
public void testKt63982() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/kt63982.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaArgumentWithLabel.kt")
|
||||
public void testLambdaArgumentWithLabel() throws Exception {
|
||||
|
||||
+6
@@ -16430,6 +16430,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/inference/kt62609.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt63982.kt")
|
||||
public void testKt63982() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/kt63982.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaArgumentWithLabel.kt")
|
||||
public void testLambdaArgumentWithLabel() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user