File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,8 @@ func testSimpleEnum() {
299
299
let _ : SimpleEnum = . X // expected-error {{'=' must have consistent whitespace on both sides}}
300
300
}
301
301
302
- enum SR510 : String {
302
+ // https://github.com/apple/swift/issues/43127
303
+ enum E_43127 : String {
303
304
case Thing = " thing "
304
305
case Bob = { " test " } // expected-error {{raw value for enum case must be a literal}}
305
306
}
@@ -337,7 +338,8 @@ enum HasVariadic {
337
338
case variadic( x: Int ... ) // expected-error {{variadic enum cases are not supported}}
338
339
}
339
340
340
- // SR-2176
341
+ // https://github.com/apple/swift/issues/44784
342
+
341
343
enum Foo {
342
344
case bar
343
345
case none
@@ -446,7 +448,7 @@ protocol P {}
446
448
enum E : C & P { }
447
449
// expected-error@-1 {{inheritance from class-constrained protocol composition type 'C & P'}}
448
450
449
- // SR-11522
451
+ // https://github.com/apple/swift/issues/53923
450
452
451
453
enum EnumWithStaticNone1 {
452
454
case a
@@ -573,7 +575,7 @@ let _: EnumWithTypealiasNone? = .none // Okay
573
575
let _: EnumWithBothStructAndComputedNone ? = . none // Okay
574
576
let _: EnumWithBothTypealiasAndComputedNone ? = . none // Okay
575
577
576
- // SR-12063
578
+ // https://github.com/apple/swift/issues/54499
577
579
578
580
let foo1 : Foo ? = Foo . none
579
581
let foo2 : Foo ? ? = Foo . none
Original file line number Diff line number Diff line change 1
1
// RUN: %target-typecheck-verify-swift -swift-version 5
2
2
3
- // https://bugs. swift.org/browse/SR-1660
3
+ // https://github.com/apple/ swift/issues/44269
4
4
5
5
enum DayOfTheWeek : Int {
6
6
case monday = 0
You can’t perform that action at this time.
0 commit comments