Skip to content

Commit 9cc2d65

Browse files
committed
refine test
1 parent 67cd809 commit 9cc2d65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/Sema/option-set-empty.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
struct SomeOptions: OptionSet {
44
var rawValue: Int
55

6-
let someVal = MyOptions(rawValue: 6)
76
static let some = MyOptions(rawValue: 4)
87
static let empty = SomeOptions(rawValue: 0) // expected-warning {{static property 'empty' produces an empty option set}} expected-note {{use [] to silence this warning}}{{35-48=([])}}
98
static var otherVal = SomeOptions(rawValue: 0)
9+
10+
let someVal = MyOptions(rawValue: 6)
1011
let option = MyOptions(float: Float.infinity)
12+
let none = MyOptions(rawValue: 0)
1113
}
1214

1315
struct MyOptions: OptionSet {

0 commit comments

Comments
 (0)