Skip to content

Commit 6abac66

Browse files
committed
Test: more existential coverage
1 parent 023bd50 commit 6abac66

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
@@ -490,3 +490,8 @@ extension StillIllegal1: AnotherOne where Pointee: Escapable {}
490490
struct SillIllegal2<Pointee> {}
491491
extension SillIllegal2: Arbitrary where Pointee: Sendable {}
492492
// expected-error@-1 {{conditional conformance to non-marker protocol 'Arbitrary' cannot depend on conformance of 'Pointee' to marker protocol 'Sendable'}}
493+
494+
struct SSS: ~Copyable, PPP {}
495+
protocol PPP: ~Copyable {}
496+
let global__old__: any PPP = SSS() // expected-error {{value of type 'SSS' does not conform to specified type 'Copyable'}}
497+
let global__new__: any PPP & ~Copyable = SSS()

0 commit comments

Comments
 (0)