Associated Type inference regression with default types #72190
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
The following code, with a protocol that specialises another protocol with three associated types by providing a default type for the second associated type in the case the first associated type is a certain value compiles when using Swift 5.10. The nightly from 1st March fails to infer the types and cannot compile the code.
Reproduction
In Swift 6 produces the following errors
Expected behavior
Code compiles
Environment
Swift version 6.0-dev (LLVM aa5a99efe7c5734, Swift 2f6e9b3)
Target: x86_64-unknown-linux-gnu
Additional information
No response
The text was updated successfully, but these errors were encountered: