Skip to content

Commit 3334a82

Browse files
committed
[test] Add an extra test case for f60567e, per feedback by BenL.
1 parent 71379a4 commit 3334a82

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/FixCode/fixits-apply.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ struct MyEventMask2 : OptionSet {
3737
}
3838
func sendIt(_: MyEventMask2) {}
3939
func sendItOpt(_: MyEventMask2?) {}
40+
func sendItOpt3(_: MyEventMask2???) {}
4041
func testMask1(a: Int) {
4142
sendIt(a)
4243
}
@@ -52,6 +53,9 @@ func testMask4(a: MyEventMask2) {
5253
func testMask5(a: Int) {
5354
sendItOpt(a)
5455
}
56+
func testMask6(a: Int) {
57+
sendItOpt(a)
58+
}
5559

5660
enum MyEnumType : UInt32 {
5761
case invalid

test/FixCode/fixits-apply.swift.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ struct MyEventMask2 : OptionSet {
3737
}
3838
func sendIt(_: MyEventMask2) {}
3939
func sendItOpt(_: MyEventMask2?) {}
40+
func sendItOpt3(_: MyEventMask2???) {}
4041
func testMask1(a: Int) {
4142
sendIt(MyEventMask2(rawValue: UInt64(a)))
4243
}
@@ -52,6 +53,9 @@ func testMask4(a: MyEventMask2) {
5253
func testMask5(a: Int) {
5354
sendItOpt(MyEventMask2(rawValue: UInt64(a)))
5455
}
56+
func testMask6(a: Int) {
57+
sendItOpt(MyEventMask2(rawValue: UInt64(a)))
58+
}
5559

5660
enum MyEnumType : UInt32 {
5761
case invalid

0 commit comments

Comments
 (0)