aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-07-12 18:35:54 +0200
committerRon Evans <[email protected]>2024-07-20 14:30:34 +0200
commit824bf244453bdb0502fa30de70c799d666665480 (patch)
tree6aebadab689b4dff5eb26ecf208ea5c2a9198ba5 /testdata
parent80269b98ba1163485edf0972d1b9e93353f67e5b (diff)
downloadtinygo-824bf244453bdb0502fa30de70c799d666665480.tar.gz
tinygo-824bf244453bdb0502fa30de70c799d666665480.zip
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.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/errors/types.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/testdata/errors/types.go b/testdata/errors/types.go
index 491e2fe67..6bd949f0c 100644
--- a/testdata/errors/types.go
+++ b/testdata/errors/types.go
@@ -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