Skip to content
Discussion options

You must be logged in to vote

Because DoesNotReturn isn't actually a contract. It can trivially be violated. However, the compiler 'reachability analysis' is precise and depends only on things it can prove. As it cannot prove that DoesNotReturn is true, it must error.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@TahirAhmadov
Comment options

@333fred
Comment options

@erik-kallen
Comment options

@FaustVX
Comment options

Answer selected by FLAMESpl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants