lang: types: Add stringer information manually

This lets us get the more correct lowercase versions of type kinds in
error messages. (These match what the user would type.)
This commit is contained in:
James Shubin
2024-07-01 18:35:20 -04:00
parent 28253c4bd2
commit e10e92596f
22 changed files with 82 additions and 71 deletions

View File

@@ -3830,7 +3830,7 @@ func (obj *StmtProg) SetScope(scope *interfaces.Scope) error {
}
// If we don't do this deterministically the type unification errors can
// flip from `type error: Int != Str` to `type error: Str != Int` etc...
// flip from `type error: int != str` to `type error: str != int` etc...
nodeOrder, err := orderingGraph.DeterministicTopologicalSort() // sorted!
if err != nil {