[TypedThrow] Generic Failure Protocol Crashes #74565
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
typed throws
Feature → error handling → throws & rethrows: Typed throws
Description
I was trying to merge TaskGroup API with generic Protocol. However code is not compiled.
Reproduction
Declare Generic Failure Protocol like below
CompatDiscardingTaskGroup
Below code block is compiled which is expected
However this code block is not compiled, and rather crash
Stack dump
Expected behavior
Code should compile. Since Failure type is very obvious in this case( Never and any Error)
Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: