mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
diagnostics: sort package diagnostics by position
Previously, the error messages could be shown out of order. With this patch, the errors are sorted before being shown to the user. This makes it easier to read the error messages, and matches what the `go` toolchain does.
This commit is contained in:
committed by
Ron Evans
parent
80269b98ba
commit
824bf24445
Vendored
+1
-1
@@ -7,6 +7,6 @@ func main() {
|
||||
}
|
||||
|
||||
// ERROR: # command-line-arguments
|
||||
// ERROR: types.go:4:6: a declared and not used
|
||||
// ERROR: types.go:5:6: cannot use "foobar" (untyped string constant) as int value in assignment
|
||||
// ERROR: types.go:6:2: undefined: nonexisting
|
||||
// ERROR: types.go:4:6: a declared and not used
|
||||
|
||||
Reference in New Issue
Block a user