[FR] Make Never
raisable
#8911
Azureblade3808
started this conversation in
Ideas
Replies: 1 comment
-
This will be addressed in the next release. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, a variable with type
Never
is not allowed to be raised.But technically said,
Never
is indeed a subtype ofBaseException
, so I don't think the reason is very convincing.If such usages are allowed, it will be easier to implement tests for unraisable exceptions. For my case, it is something like --
Beta Was this translation helpful? Give feedback.
All reactions