We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have encountered a crash when using replaceError(with:), and can reproduce it using the example documented in the OneOf parser.
replaceError(with:)
OneOf
enum Currency { case eur, gbp, usd, unknown } let currency = OneOf { "€".map { Currency.eur } "£".map { Currency.gbp } "$".map { Currency.usd } } .replaceError(with: Currency.unknown) print(currency.parse("$")) // Currency.usd print(currency.parse("฿")) // Thread 1: EXC_BREAKPOINT (code=1, subcode=0x100004650)
Using a SPM executable package on Xcode 15.0.1 (15A507)
I tried stepping through the library code to try see if I could find the root cause, but I think it is beyond my ability/understanding!
Thanks, Russell
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have encountered a crash when using
replaceError(with:)
, and can reproduce it using the example documented in theOneOf
parser.Using a SPM executable package on Xcode 15.0.1 (15A507)
I tried stepping through the library code to try see if I could find the root cause, but I think it is beyond my ability/understanding!
Thanks,
Russell
The text was updated successfully, but these errors were encountered: