Akuli / jou

Yet another programming language
MIT License
11 stars 4 forks source link

method error messages off by one #448

Closed Akuli closed 7 months ago

Akuli commented 7 months ago

When working on self-hosted compiler, I got this error message:

compiler error in file "self_hosted/typecheck.jou", line 1221: third argument of method do_expression_and_implicit_cast(expression: AstExpression, cast_type: Type, error_message_template: byte) should have type Type, not Type

The error message is clearly talking about the second argument cast_type, even though it says "third argument".

Akuli commented 7 months ago

Only the compiler written in C has this problem. It is probably not worth fixing, if we eventually switch to self-hosted compiler anyway.