Sema: Fix handling of inverse requirements in checkProtocolRefinementRequirements()

This commit is contained in:
Slava Pestov
2024-02-21 17:43:47 -05:00
parent bd06653ee9
commit 512a15939d
4 changed files with 37 additions and 39 deletions

View File

@@ -3,8 +3,8 @@
protocol RegularProto {}
protocol NCProto: RegularProto
where Self: ~Copyable { // expected-error{{'Self' required to be 'Copyable' but is marked with '~Copyable'}}
protocol NCProto: RegularProto // expected-error{{'Self' required to be 'Copyable' but is marked with '~Copyable'}}
where Self: ~Copyable {
func checkIfCopyableSelf(_ s: Self)
}