Skip to content

Commit 9090d7f

Browse files
committed
add test
1 parent 0ba2980 commit 9090d7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Sema/option-set-empty.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct SomeOptions: OptionSet {
99

1010
let someVal = MyOptions(rawValue: 6)
1111
let option = MyOptions(float: Float.infinity)
12-
let none = MyOptions(rawValue: 0)
12+
let none = SomeOptions(rawValue: 0) // expected-error {{value type 'SomeOptions' cannot have a stored property that recursively contains it}}
1313
}
1414

1515
struct MyOptions: OptionSet {

0 commit comments

Comments
 (0)