Skip to content

Commit 6d3e7e0

Browse files
committed
test: add missing composition conflict error
1 parent 5e51773 commit 6d3e7e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Parse/inverses.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ typealias Z5 = (~Int) -> Void // expected-error {{type 'Int' is not invertible}}
100100
typealias Z6 = ~() -> () // expected-error {{single argument function types require parentheses}}
101101
// expected-error@-1 {{type '()' is not invertible}}
102102
typealias Z7 = ~(Copyable & Hashable) // expected-error {{type 'Hashable' is not invertible}}
103-
typealias Z8 = ~Copyable & Hashable
103+
typealias Z8 = ~Copyable & Hashable // expected-error {{composition cannot contain '~Copyable' when another member requires 'Copyable'}}

0 commit comments

Comments
 (0)