File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ func enumElementSyntaxOnTuple() {
314
314
}
315
315
}
316
316
317
- // sr-176
317
+ // https://github.com/apple/swift/issues/42798
318
318
enum Whatever { case Thing }
319
319
func f0( values: [ Whatever ] ) { // expected-note {{'values' declared here}}
320
320
switch value { // expected-error {{cannot find 'value' in scope; did you mean 'values'?}}
@@ -323,7 +323,8 @@ func f0(values: [Whatever]) { // expected-note {{'values' declared here}}
323
323
}
324
324
}
325
325
326
- // sr-720
326
+ // https://github.com/apple/swift/issues/43334
327
+ // https://github.com/apple/swift/issues/43335
327
328
enum Whichever {
328
329
case Thing
329
330
static let title = " title "
@@ -348,6 +349,12 @@ func f1(x: String, y: Whichever) {
348
349
case Whichever . title: // expected-error {{expression pattern of type 'String' cannot match values of type 'Whichever'}}
349
350
break
350
351
}
352
+ switch y {
353
+ case . alias:
354
+ break
355
+ default :
356
+ break
357
+ }
351
358
}
352
359
353
360
You can’t perform that action at this time.
0 commit comments