Files
Max Chesnikov be506a5603 [CSSimplify] Diagnose collection element mismatches in presence of restrictions
edd050a217 made `repairFailures` skip the `TupleElement` case in presence
of restrictions, so an element of a collection literal that could only be
converted via a restriction (i.e. value-to-optional or superclass) didn't
get a fix anywhere when the restriction itself failed. The solver then
ended up with no fixes at all, resulting in "failed to produce diagnostic"
for code like `let _: [Int?] = ["a"]` or `let _: [Derived] = [Base()]`.

Let's record `CollectionElementContextualMismatch` as an alternative to
the restrictions instead, so it's only selected when none of them apply.
The early exit for restrictions is still in place for the rest of the
tuple element mismatches.

Resolves: https://github.com/swiftlang/swift/issues/93849
2026-11-27 09:58:39 -08:00
..
…
2026-11-16 10:09:01 +00:00
…
…
…

known_issues

The known_issues directory is used to track known bugs that are not crashers.

  • If you fix a test in this directory, i.e., the test starts failing, please delete the test file and reorganise the test case by moving it to an appropriate place in the primary test suite under ../test.

  • If you add a test to this directory, please make sure that the test is associated with either a GitHub issue or an Apple radar of internal origin, and include link to that record in the test.

    If the test is associated only with an internal report, please also include a brief explanation of the issue in the test for clarity.