hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit f525f4e2abfdbaf74b09a4f6d19bc2ce7858e4b0
parent e5fffc5c680ec3d91c4b282d7d76da109142db20
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sat,  9 Dec 2023 21:14:57 -0500

hare::parse: improve assign expr error message

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mhare/parse/expr.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hare/parse/expr.ha b/hare/parse/expr.ha @@ -54,7 +54,7 @@ export fn expr(lexer: *lex::lexer) (ast::expr | error) = { yield false; }; synassert(lex::mkloc(lexer), is_obj_selector, - "Expected an object-selector or slice for assignment target")?; + "Expected an object-selector, pointer dereference, or slice for assignment target")?; const ex = ast::assign_expr { op = switch (tok.0) { case ltok::EQUAL =>