File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ struct MyEventMask2 : OptionSet {
37
37
}
38
38
func sendIt( _: MyEventMask2 ) { }
39
39
func sendItOpt( _: MyEventMask2 ? ) { }
40
+ func sendItOpt3( _: MyEventMask2 ? ? ? ) { }
40
41
func testMask1( a: Int ) {
41
42
sendIt ( a)
42
43
}
@@ -52,6 +53,9 @@ func testMask4(a: MyEventMask2) {
52
53
func testMask5( a: Int ) {
53
54
sendItOpt ( a)
54
55
}
56
+ func testMask6( a: Int ) {
57
+ sendItOpt ( a)
58
+ }
55
59
56
60
enum MyEnumType : UInt32 {
57
61
case invalid
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ struct MyEventMask2 : OptionSet {
37
37
}
38
38
func sendIt(_: MyEventMask2) {}
39
39
func sendItOpt(_: MyEventMask2?) {}
40
+ func sendItOpt3(_: MyEventMask2???) {}
40
41
func testMask1(a: Int) {
41
42
sendIt(MyEventMask2(rawValue: UInt64(a)))
42
43
}
@@ -52,6 +53,9 @@ func testMask4(a: MyEventMask2) {
52
53
func testMask5(a: Int) {
53
54
sendItOpt(MyEventMask2(rawValue: UInt64(a)))
54
55
}
56
+ func testMask6(a: Int) {
57
+ sendItOpt(MyEventMask2(rawValue: UInt64(a)))
58
+ }
55
59
56
60
enum MyEnumType : UInt32 {
57
61
case invalid
You can’t perform that action at this time.
0 commit comments