@@ -9,31 +9,31 @@ enum Maybe<Thing: ~Copyable> : ~Copyable {}
9
9
func more( ) {
10
10
let _: any ~ Copyable = 19
11
11
12
- let _: any ~ Equatable = 19 // expected-error@:14 {{type 'Equatable' is not invertable }}
12
+ let _: any ~ Equatable = 19 // expected-error@:14 {{type 'Equatable' is not invertible }}
13
13
14
- let _: any ( ~ Copyable & ~ Equatable) // expected-error{{type 'Equatable' is not invertable }}
14
+ let _: any ( ~ Copyable & ~ Equatable) // expected-error{{type 'Equatable' is not invertible }}
15
15
16
- let _: ~ Any // expected-error {{type 'Any' is not invertable }}
17
- let _: ~ AnyObject // expected-error {{type 'AnyObject' is not invertable }}
16
+ let _: ~ Any // expected-error {{type 'Any' is not invertible }}
17
+ let _: ~ AnyObject // expected-error {{type 'AnyObject' is not invertible }}
18
18
}
19
19
20
- struct S4 : ~ ( Copyable & Equatable ) { } // expected-error {{type 'Copyable & Equatable' is not invertable }}
20
+ struct S4 : ~ ( Copyable & Equatable ) { } // expected-error {{type 'Copyable & Equatable' is not invertible }}
21
21
22
22
func blah< T> ( _ t: T ) where T: ~ Copyable,
23
- T: ~ Hashable { } // expected-error@:31 {{type 'Hashable' is not invertable }}
23
+ T: ~ Hashable { } // expected-error@:31 {{type 'Hashable' is not invertible }}
24
24
25
25
func foo< T: ~ Copyable> ( x: T ) { }
26
26
27
27
struct Buurap < T: ~ Copyable> { }
28
28
29
29
protocol Foo where Self: ~ Copyable {
30
- func test< T> ( _ t: T ) where T: ~ Self // expected-error {{type 'Self' is not invertable }}
30
+ func test< T> ( _ t: T ) where T: ~ Self // expected-error {{type 'Self' is not invertible }}
31
31
}
32
32
33
33
protocol Sando { func make( ) }
34
34
35
35
class C: ~ Copyable,
36
- ~ Sando // expected-error {{type 'Sando' is not invertable }}
36
+ ~ Sando // expected-error {{type 'Sando' is not invertible }}
37
37
{ }
38
38
39
39
public struct MoveOnlyS1 < T> : ~ Copyable { /*deinit {}*/ }
@@ -47,7 +47,7 @@ protocol Rope<Element>: Hashable, ~ Copyable {
47
47
48
48
extension S : ~ Copyable { }
49
49
50
- struct S: ~ U, // expected-error {{type 'U' is not invertable }}
50
+ struct S: ~ U, // expected-error {{type 'U' is not invertible }}
51
51
~ Copyable { }
52
52
53
53
func greenBay< each T : ~ Copyable> ( _ r: repeat each T ) { }
@@ -73,12 +73,12 @@ func what(one: ~Copyable..., // expected-error {{type 'any Copyable' is not inve
73
73
struct A { struct B { struct C { } } }
74
74
75
75
typealias Z1 = ( ~ Copyable) . Type // FIXME: should be an error
76
- typealias Z1 = ~ Copyable. Type // expected-error {{type 'any Copyable.Type' is not invertable }}
77
- typealias Z2 = ~ A. B. C // expected-error {{type 'A.B.C' is not invertable }}
78
- typealias Z3 = ~ A? // expected-error {{type 'A?' is not invertable }}
79
- typealias Z4 = ~ Rope< Int> // expected-error {{type 'Rope<Int>' is not invertable }}
80
- typealias Z5 = ( ~ Int) - > Void // expected-error {{type 'Int' is not invertable }}
76
+ typealias Z1 = ~ Copyable. Type // expected-error {{type 'any Copyable.Type' is not invertible }}
77
+ typealias Z2 = ~ A. B. C // expected-error {{type 'A.B.C' is not invertible }}
78
+ typealias Z3 = ~ A? // expected-error {{type 'A?' is not invertible }}
79
+ typealias Z4 = ~ Rope< Int> // expected-error {{type 'Rope<Int>' is not invertible }}
80
+ typealias Z5 = ( ~ Int) - > Void // expected-error {{type 'Int' is not invertible }}
81
81
typealias Z6 = ~ ( ) -> ( ) // expected-error {{single argument function types require parentheses}}
82
- // expected-error@-1 {{type '()' is not invertable }}
83
- typealias Z7 = ~ ( Copyable & Hashable ) // expected-error {{type 'Copyable & Hashable' is not invertable }}
82
+ // expected-error@-1 {{type '()' is not invertible }}
83
+ typealias Z7 = ~ ( Copyable & Hashable ) // expected-error {{type 'Copyable & Hashable' is not invertible }}
84
84
typealias Z8 = ~ Copyable & Hashable
0 commit comments