| author | |
| committer | |
| log | 7d02b693beeb53fa7f69c55301d8c5f5581b23b2 |
| tree | 125fb5b12917b1f7b8405f594470f54f33d6bff3 |
| parent | 85b997b346aac7d5dc51f9b49ba7596db1b407b0 |
1 files changed, 5 insertions(+), 0 deletions(-)
src/Sema.zig+5| ... | ... | @@ -6562,6 +6562,11 @@ fn resolveAnalyzedBlock( |
| 6562 | 6562 | } }, |
| 6563 | 6563 | }); |
| 6564 | 6564 | } |
| 6565 | ||
| 6566 | if (try sema.typeHasOnePossibleValue(resolved_ty)) |block_only_value| { | |
| 6567 | return Air.internedToRef(block_only_value.toIntern()); | |
| 6568 | } | |
| 6569 | ||
| 6565 | 6570 | return merges.block_inst.toRef(); |
| 6566 | 6571 | } |
| 6567 | 6572 |