diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-12-22 00:50:30 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-12-22 00:50:30 -0500 |
| commit | d917815d8111b98dc237cbe2c723fa63018e02b1 (patch) | |
| tree | ce12771a86b2412ee9692ca73d3ca49abe5da3ce /test/cases/switch_prong_err_enum.zig | |
| parent | 8bc523219c66427951e5339550502871547f2138 (diff) | |
| download | zig-d917815d8111b98dc237cbe2c723fa63018e02b1.tar.gz zig-d917815d8111b98dc237cbe2c723fa63018e02b1.zip | |
explicitly return from blocks
instead of last statement being expression value
closes #629
Diffstat (limited to 'test/cases/switch_prong_err_enum.zig')
| -rw-r--r-- | test/cases/switch_prong_err_enum.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cases/switch_prong_err_enum.zig b/test/cases/switch_prong_err_enum.zig index 21f6b04037..be15193c74 100644 --- a/test/cases/switch_prong_err_enum.zig +++ b/test/cases/switch_prong_err_enum.zig @@ -18,7 +18,7 @@ fn doThing(form_id: u64) -> %FormValue { return switch (form_id) { 17 => FormValue { .Address = %return readOnce() }, else => error.InvalidDebugInfo, - } + }; } test "switch prong returns error enum" { |
