Skip to content

Commit

Permalink
Go: Update frontend error messages for Go 1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg committed Aug 14, 2024
1 parent 7777cc3 commit 4900821
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
| -:0:0:0:0 | package ; expected main |
| -:0:0:0:0 | package ; expected package main |
| broken2/test1.go:4:2:4:2 | undefined: fmt |
| broken2/test1.go:5:2:5:2 | undefined: fmt |
| broken2/test1.go:5:14:5:14 | undefined: a |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
| -:0:0:0:0 | package ; expected nonexistent |
| -:0:0:0:0 | package ; expected package nonexistent |
| vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected ';', found 'EOF' |
| vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected 'IDENT', found 'EOF' |
| vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected 'package', found 'EOF' |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| -:0:0:0:0 | malformed import path "github.com/github/codeql-go/ql/test/query-tests/Diagnostics/invalid{": invalid char '{' |
| -:0:0:0:0 | package ; expected main |
| -:0:0:0:0 | package ; expected package main |
| bad.go:3:1:3:1 | expected 'package', found avvu |
| bad.go:3:1:3:1 | expected 'package', found avvu |
| bad.go:3:5:3:5 | expected 'IDENT', found newline |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
| Extraction failed with error expected 'IDENT', found newline | 2 |
| Extraction failed with error expected 'package', found avvu | 2 |
| Extraction failed with error malformed import path "github.com/github/codeql-go/ql/test/query-tests/Diagnostics/invalid{": invalid char '{' | 2 |
| Extraction failed with error package ; expected main | 2 |
| Extraction failed with error package ; expected package main | 2 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
| -:0:0:0:0 | package ; expected main |
| -:0:0:0:0 | package ; expected package main |
| empty-file.go:1:1:1:1 | expected ';', found 'EOF' |
| empty-file.go:1:1:1:1 | expected 'IDENT', found 'EOF' |
| empty-file.go:1:1:1:1 | expected 'package', found 'EOF' |
Expand Down

0 comments on commit 4900821

Please sign in to comment.