Skip to content

Commit

Permalink
0.5.2: Allow trailing comma in calls and parameter declarations #1092.…
Browse files Browse the repository at this point in the history
… Fixes issue where single character filenames like 'a.c3' would be rejected. Improve error messages for incorrect user defined foreach. Fix bug with generics in generics. Fix to error with modified vector parameters. Crash with lhs vector inference.
  • Loading branch information
lerno committed Dec 22, 2023
1 parent ce60fe5 commit 65e1597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Fixed issue when using a generic type from a generic type.
- Bug with vector parameters when the size > 2 and modified.
- Missing error on assigning to in-parameters through subscripting.
- Inference of a vector on the lhs of a binary expression would cause a crash.

### Stdlib changes
- Allow `to_int` family functions take a base, parsing base 2-10 and 16.
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/sema_expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ static inline bool sema_binary_analyse_subexpr(SemaContext *context, Expr *binar
if (!sema_analyse_expr(context, right)) return false;
if (type_kind_is_any_vector(type_flatten(right->type)->type_kind))
{
return sema_analyse_inferred_expr(context, right->type, right);
return sema_analyse_inferred_expr(context, right->type, left);
}
return sema_analyse_expr(context, left);
}
Expand Down

0 comments on commit 65e1597

Please sign in to comment.