You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Missing annotations on VARIABLE's don't include line numbers:
PASS #1: TypeCheckerSnowcat I@08:18:53.210
> Running Snowcat .::. I@08:18:53.210
Typing input error: Expected a type annotation for VARIABLE blockchain E@08:18:53.309
It took me 0 days 0 hours 0 min 0 sec I@08:18:53.310
Total time: 0.920 sec I@08:18:53.310
EXITCODE: ERROR (255)
Currently \* @type: [RM: String];= returns the confusing error that found =ing= when it exepted =], because it's not checking for the full token in the type, but just taking the Str prefix.
Type aliases that aren't actually defined should raise a specific error reporting this mismatch
TypeAlias declarations in invalid positions should raise an error (is that possible?)
Format type errors. They are currently hard to read for nontrivial types, e.g.,
Achieved via indentation, sensible line breaks, and removing redundant parens.
Use typeAlias in scope instead of fully expanded type in type errors, but also report the full type of the alias at the end of the error. That would make errors like the previous much easier to read.
The text was updated successfully, but these errors were encountered:
One issue is that the type checker is working at the level of EtcExpr, which lacks information about the original expressions. I think it makes sense to introduce another pass similar to ToEtcExpr that goes over TlaEx again and reports on errors by knowing the id of a problematic TlaEx.
;
at end of line: Confusing error message on missing semicolon in type #954\* @type: [RM: String];= returns the confusing error that found =ing= when it exepted =]
, because it's not checking for the full token in the type, but just taking theStr
prefix.We should instead format something like
Achieved via indentation, sensible line breaks, and removing redundant parens.
The text was updated successfully, but these errors were encountered: