Files
swift-mirror/lib/AST/RequirementMachine/RequirementMachineRequests.cpp
Joe Groff 5456eb96a0 Sema: Allow T == NonCopyableOrEscapable same-type constraints without a redundant T: ~Copyable.
Enhance the logic in `applyInverses` to also take into account same-type constraints spelled in
the generic signature, so that same-type-constraining a type parameter to a type that is itself
not `Copyable` or `Escapable` suppresses the default application of those constraints on the
type parameter. Fixes rdar://147757973.
2025-05-12 16:15:04 -07:00

41 KiB