diff options
| author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-06-06 04:13:52 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-06 13:13:52 +0300 |
| commit | 135b91aecd9be1f6f5806b667e07e383dd481198 (patch) | |
| tree | 4bcc701521d344b75b2541ec1347ce2652e020c0 /src/type.zig | |
| parent | 33826a6a2e035d2a2be65314ed80a6b7abaf7f12 (diff) | |
| download | zig-135b91aecd9be1f6f5806b667e07e383dd481198.tar.gz zig-135b91aecd9be1f6f5806b667e07e383dd481198.zip | |
Treat blocks with "return" as "noreturn"
Block statements that end with "break" should not be considered
"noreturn" for the enclosing scope, but other "noreturn" instructions
(return, panic, compile error, etc.) should be. This differentiation
necessitates handling "break" differently from the other "noreturn"
instructions when inside a block statement.
Diffstat (limited to 'src/type.zig')
0 files changed, 0 insertions, 0 deletions
