Compiler crash when returning a throwing closure with typed Error set to Never #78212
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
Description
While I was playing with the memoization code seen in the forum to add support for typed error, I encountered a crash in the compiler.
I reduce it to the fact that the compiler crash when trying to return a throwing closure with typed error.
Reproduction
Stack dump
Expected behavior
The compiler doesn't crash.
Environment
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0
Additional information
Returning the same throwing closure with untyped error works.
The text was updated successfully, but these errors were encountered: