try intersection of upper bounds as a suggestion
not each bound itself while resolving constraint system
This commit is contained in:
@@ -3542,11 +3542,21 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
||||
doTest("compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intersectUpperBounds.kt")
|
||||
public void testIntersectUpperBounds() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/inference/upperBounds/intersectUpperBounds.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2856.kt")
|
||||
public void testKt2856() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/inference/upperBounds/kt2856.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonNullUpperBound.kt")
|
||||
public void testNonNullUpperBound() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/inference/upperBounds/nonNullUpperBound.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useBoundsIfUnknownParameters.kt")
|
||||
public void testUseBoundsIfUnknownParameters() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/inference/upperBounds/useBoundsIfUnknownParameters.kt");
|
||||
|
||||
Reference in New Issue
Block a user