[SR-10651] Currying from a non-throwing function to a throwing function causes a runtime crash if an error is attempted to be rethrown. #53051
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
Attachment: Download
Environment
macOS 10.14.4
Xcode 10.2.1
Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5)
Target: x86_64-apple-darwin18.5.0
Additional Detail from JIRA
md5: bd84e8be4e656015acc925eb790f6af1
Issue Description:
If a function takes a function that is curried into a throwing function, the outer functions rethrows is ignored and causes a runtime crash for not handling the error.
This can be duplicated by running the attached main.swift file.
The example of this is found with the use of
forEachApply3
when callingA.thrower``.
The text was updated successfully, but these errors were encountered: