diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-10-08 20:18:48 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-10-08 20:18:48 +0200 |
| commit | ea902858825aac806cd282e6d5f02ec683a995e3 (patch) | |
| tree | ed61b48a185dcdeff557887fbf0da0b6e6340113 /boot | |
| parent | 7d07bef760a8807fe49fbe5c90799a1822f95973 (diff) | |
| download | elna-ea902858825aac806cd282e6d5f02ec683a995e3.tar.gz | |
Fix ICE with local block variables
Diffstat (limited to 'boot')
| -rw-r--r-- | boot/type_check.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/boot/type_check.cc b/boot/type_check.cc index d8a9170..31e10f1 100644 --- a/boot/type_check.cc +++ b/boot/type_check.cc @@ -1506,6 +1506,16 @@ namespace elna::boot } // else callable is not declared, or inference failed and reported. } + + void type_analysis_visitor::visit(defer_statement *statement) + { + traverse_block(statement->body); + } + + void type_analysis_visitor::visit(block_statement *statement) + { + traverse_block(statement->body); + } void type_analysis_visitor::visit(record_constructor_expression *expression) { |
