mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
587ad68bd9
Previously the loader would only report the first error. With this change, all syntax and type errors will be reported.
18 lines
659 B
Go
18 lines
659 B
Go
package main
|
|
|
|
import (
|
|
_ "github.com/tinygo-org/tinygo/testdata/errors/multi-1"
|
|
_ "github.com/tinygo-org/tinygo/testdata/errors/multi-2"
|
|
_ "github.com/tinygo-org/tinygo/testdata/errors/multi-3"
|
|
)
|
|
|
|
func main() {
|
|
}
|
|
|
|
// ERROR: # github.com/tinygo-org/tinygo/testdata/errors/multi-2
|
|
// ERROR: multi-2/syntax.go:3:11: expected ')', found 'type'
|
|
// ERROR: # github.com/tinygo-org/tinygo/testdata/errors/multi-3
|
|
// ERROR: multi-3/syntax.go:3:11: expected ')', found 'import'
|
|
// ERROR: # github.com/tinygo-org/tinygo/testdata/errors/multi-1
|
|
// ERROR: multi-1/types.go:3:13: cannot use 3.14 (untyped float constant) as int value in variable declaration (truncated)
|