Files
Kavon Farvardin d46a86e5b1 Sema: fix effects checking in witness matching
A requirement defines the maximal effects that a witness can have.

In some cases, we'd fail to properly reject such a witness with more
effects, when that witness is valid for another requirement within that
protocol. Thus, we'd hit an assertion failure in that case rather than
permitting the valid program to compile.

In a non-asserts compiler, we could end up failing to diagnose an invalid
chosen witness and crash in IRGen.

https://github.com/apple/swift/issues/73479
rdar://127669069
2026-03-12 22:08:40 -07:00
..
…