diff options
| author | Joseph Battelle <bttelle@iom.io> | 2020-09-14 16:41:53 -0700 |
|---|---|---|
| committer | Joseph Battelle <bttelle@iom.io> | 2020-09-14 16:41:53 -0700 |
| commit | e9c598a426bf5d06e8f4970c0e53183b8961ac6e (patch) | |
| tree | 9a1f816ae896baa33ec8c2f55df049728e20fdd7 /src/check_stmt.cpp | |
| parent | d53725fe14209d64fe054aa4bfb705cddbc4c4ec (diff) | |
Fix issue #723
Typo in `check_stmt_internal` for case Ast_UsingStmt; first element
was used for all elements of the enumerated list.
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 3adb2d04d..3e8c8802b 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1926,7 +1926,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { return; } for_array(i, us->list) { - Ast *expr = unparen_expr(us->list[0]); + Ast *expr = unparen_expr(us->list[i]); Entity *e = nullptr; bool is_selector = false; |