Skip to content

Commit a2ec1da

Browse files
committed
Test: more existential coverage
1 parent 6ac91cd commit a2ec1da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/Generics/inverse_generics.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,3 +482,8 @@ extension StillIllegal1: AnotherOne where Pointee: Escapable {}
482482
struct SillIllegal2<Pointee> {}
483483
extension SillIllegal2: Arbitrary where Pointee: Sendable {}
484484
// expected-error@-1 {{conditional conformance to non-marker protocol 'Arbitrary' cannot depend on conformance of 'Pointee' to marker protocol 'Sendable'}}
485+
486+
struct SSS: ~Copyable, PPP {}
487+
protocol PPP: ~Copyable {}
488+
let global__old__: any PPP = SSS() // expected-error {{value of type 'SSS' does not conform to specified type 'Copyable'}}
489+
let global__new__: any PPP & ~Copyable = SSS()

0 commit comments

Comments
 (0)