You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the restructuring in #477, there was ambiguity between the
unconstrained `@Option` initializer that uses a transform (but no
initial value) and the one that is constrained to the property being
optional. This marks the unconstrained version as disfavored, which
allows overload resolution to select the optional version when
appropriate.
Fixes#618.
Due to the restructuring in #477, there was ambiguity between the
unconstrained `@Option` initializer that uses a transform (but no
initial value) and the one that is constrained to the property being
optional. This marks the unconstrained version as disfavored, which
allows overload resolution to select the optional version when
appropriate.
Also fixes this for `@Argument` and improves documentation
consistency for `@Option`.
Fixes#618.
Ambiguous use of 'init(name:parsing:help:completion:transform:)' when
transform
throws.This is a regression introduced with #477 (swift-argument-parser 1.2.0).
ArgumentParser version:
main
branchSwift version: swiftlang-5.11
Checklist
main
branch of this packageSteps to Reproduce
Expected behavior
No errors.
Actual behavior
Workarounds:
var test: URL?
withvar test: URL? = nil
transform
non-throwingThe text was updated successfully, but these errors were encountered: