mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Fix handling of inverse requirements in checkProtocolRefinementRequirements()
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user