@@ -7,7 +7,7 @@ let dict2: [Character: _] = ["h": 0]
7
7
8
8
let arr = [ _] ( repeating: " hi " , count: 3 )
9
9
10
- func foo( _ arr: [ _ ] = [ 0 ] ) { } // expected-error {{placeholder type not allowed here}}
10
+ func foo( _ arr: [ _ ] = [ 0 ] ) { } // expected-error {{type placeholder not allowed here}}
11
11
12
12
let foo = _. foo // expected-error {{placeholders are not allowed as top-level types}}
13
13
let zero : _ = . zero // expected-error {{placeholders are not allowed as top-level types}}
@@ -75,25 +75,25 @@ where T: ExpressibleByIntegerLiteral, U: ExpressibleByIntegerLiteral {
75
75
}
76
76
77
77
extension Bar {
78
- func frobnicate2( ) -> Bar < _ , _ > { // expected-error {{placeholder type not allowed here}}
78
+ func frobnicate2( ) -> Bar < _ , _ > { // expected-error {{type placeholder not allowed here}}
79
79
return Bar ( t: 42 , u: 42 )
80
80
}
81
81
func frobnicate3( ) -> Bar {
82
82
return Bar < _ , _ > ( t: 42 , u: 42 )
83
83
}
84
- func frobnicate4( ) -> Bar < _ , _ > { // expected-error {{placeholder type not allowed here}}
84
+ func frobnicate4( ) -> Bar < _ , _ > { // expected-error {{type placeholder not allowed here}}
85
85
return Bar < _ , _ > ( t: 42 , u: 42 )
86
86
}
87
- func frobnicate5( ) -> Bar < _ , U > { // expected-error {{placeholder type not allowed here}}
87
+ func frobnicate5( ) -> Bar < _ , U > { // expected-error {{type placeholder not allowed here}}
88
88
return Bar ( t: 42 , u: 42 )
89
89
}
90
90
func frobnicate6( ) -> Bar {
91
91
return Bar < _ , U > ( t: 42 , u: 42 )
92
92
}
93
- func frobnicate7( ) -> Bar < _ , _ > { // expected-error {{placeholder type not allowed here}}
93
+ func frobnicate7( ) -> Bar < _ , _ > { // expected-error {{type placeholder not allowed here}}
94
94
return Bar < _ , U > ( t: 42 , u: 42 )
95
95
}
96
- func frobnicate8( ) -> Bar < _ , U > { // expected-error {{placeholder type not allowed here}}
96
+ func frobnicate8( ) -> Bar < _ , U > { // expected-error {{type placeholder not allowed here}}
97
97
return Bar < _ , _ > ( t: 42 , u: 42 )
98
98
}
99
99
}
@@ -147,12 +147,12 @@ func f(x: Any, arr: [Int]) {
147
147
let y3 = x as! ( ) -> _ // expected-error {{type of expression is ambiguous without more context}}
148
148
149
149
switch x {
150
- case is _ : break // expected-error {{placeholder type not allowed here}}
151
- case is [ _ ] : break // expected-error {{placeholder type not allowed here}}
152
- case is ( ) -> _ : break // expected-error {{placeholder type not allowed here}}
153
- case let y as _ : break // expected-error {{placeholder type not allowed here}}
154
- case let y as [ _ ] : break // expected-error {{placeholder type not allowed here}}
155
- case let y as ( ) -> _ : break // expected-error {{placeholder type not allowed here}}
150
+ case is _ : break // expected-error {{type placeholder not allowed here}}
151
+ case is [ _ ] : break // expected-error {{type placeholder not allowed here}}
152
+ case is ( ) -> _ : break // expected-error {{type placeholder not allowed here}}
153
+ case let y as _ : break // expected-error {{type placeholder not allowed here}}
154
+ case let y as [ _ ] : break // expected-error {{type placeholder not allowed here}}
155
+ case let y as ( ) -> _ : break // expected-error {{type placeholder not allowed here}}
156
156
}
157
157
158
158
if arr is _ { } // expected-error {{placeholders are not allowed as top-level types}}
@@ -166,12 +166,12 @@ func f(x: Any, arr: [Int]) {
166
166
let y3 = arr as! ( ) -> _ // expected-error {{type of expression is ambiguous without more context}}
167
167
168
168
switch arr {
169
- case is _ : break // expected-error {{placeholder type not allowed here}}
170
- case is [ _ ] : break // expected-error {{placeholder type not allowed here}}
171
- case is ( ) -> _ : break // expected-error {{placeholder type not allowed here}}
172
- case let y as _ : break // expected-error {{placeholder type not allowed here}}
173
- case let y as [ _ ] : break // expected-error {{placeholder type not allowed here}}
174
- case let y as ( ) -> _ : break // expected-error {{placeholder type not allowed here}}
169
+ case is _ : break // expected-error {{type placeholder not allowed here}}
170
+ case is [ _ ] : break // expected-error {{type placeholder not allowed here}}
171
+ case is ( ) -> _ : break // expected-error {{type placeholder not allowed here}}
172
+ case let y as _ : break // expected-error {{type placeholder not allowed here}}
173
+ case let y as [ _ ] : break // expected-error {{type placeholder not allowed here}}
174
+ case let y as ( ) -> _ : break // expected-error {{type placeholder not allowed here}}
175
175
}
176
176
}
177
177
0 commit comments