We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ba2980 commit 9090d7fCopy full SHA for 9090d7f
test/Sema/option-set-empty.swift
@@ -9,7 +9,7 @@ struct SomeOptions: OptionSet {
9
10
let someVal = MyOptions(rawValue: 6)
11
let option = MyOptions(float: Float.infinity)
12
- let none = MyOptions(rawValue: 0)
+ let none = SomeOptions(rawValue: 0) // expected-error {{value type 'SomeOptions' cannot have a stored property that recursively contains it}}
13
}
14
15
struct MyOptions: OptionSet {
0 commit comments