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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user