Files
kimon a544331c43 Improve diagnostic for @Flag Bool? without inversion: (#892)
When a user declares `@Flag(...) var x: Bool?` without the required
`inversion:` parameter, overload resolution falls through to the
`Flag where Value == Int` initializer and the compiler reports
"requires the types 'Bool?' and 'Int' be equivalent", which does not
point the user at the real cause.

Add an `@available(*, unavailable)` init overload on
`Flag where Value == Bool?` with a message that names the missing
parameter. Follows the same pattern used for the unavailable no-arg
`Flag.init()` at the top of the file.

Resolves #835.
2026-04-23 13:57:05 -07:00
..