Skip to content

Commit 0be2900

Browse files
committed
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.
1 parent 716ef96 commit 0be2900

File tree

7 files changed

+869
-609
lines changed

7 files changed

+869
-609
lines changed

lib/AST/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ add_swift_host_library(swiftAST STATIC
9595
RawComment.cpp
9696
Requirement.cpp
9797
RequirementEnvironment.cpp
98+
RequirementMachine/ApplyInverses.cpp
9899
RequirementMachine/ConcreteContraction.cpp
99100
RequirementMachine/ConcreteTypeWitness.cpp
100101
RequirementMachine/Diagnostics.cpp

0 commit comments

Comments
 (0)