Skip to content

Commit da56654

Browse files
committed
Gardening: Migrate test suite to GH issues: decl/enum
1 parent cdded2b commit da56654

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

test/decl/enum/enumtest.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ func testSimpleEnum() {
299299
let _ : SimpleEnum=.X // expected-error {{'=' must have consistent whitespace on both sides}}
300300
}
301301

302-
enum SR510: String {
302+
// https://github.com/apple/swift/issues/43127
303+
enum E_43127: String {
303304
case Thing = "thing"
304305
case Bob = {"test"} // expected-error {{raw value for enum case must be a literal}}
305306
}
@@ -337,7 +338,8 @@ enum HasVariadic {
337338
case variadic(x: Int...) // expected-error {{variadic enum cases are not supported}}
338339
}
339340

340-
// SR-2176
341+
// https://github.com/apple/swift/issues/44784
342+
341343
enum Foo {
342344
case bar
343345
case none
@@ -446,7 +448,7 @@ protocol P {}
446448
enum E : C & P {}
447449
// expected-error@-1 {{inheritance from class-constrained protocol composition type 'C & P'}}
448450

449-
// SR-11522
451+
// https://github.com/apple/swift/issues/53923
450452

451453
enum EnumWithStaticNone1 {
452454
case a
@@ -573,7 +575,7 @@ let _: EnumWithTypealiasNone? = .none // Okay
573575
let _: EnumWithBothStructAndComputedNone? = .none // Okay
574576
let _: EnumWithBothTypealiasAndComputedNone? = .none // Okay
575577

576-
// SR-12063
578+
// https://github.com/apple/swift/issues/54499
577579

578580
let foo1: Foo? = Foo.none
579581
let foo2: Foo?? = Foo.none

test/decl/enum/special_case_name.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-typecheck-verify-swift -swift-version 5
22

3-
// https://bugs.swift.org/browse/SR-1660
3+
// https://github.com/apple/swift/issues/44269
44

55
enum DayOfTheWeek : Int {
66
case monday = 0

0 commit comments

Comments
 (0)