mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
main: make sure typecheck errors are correctly reported
This commit is contained in:
@@ -25,6 +25,7 @@ func TestErrors(t *testing.T) {
|
||||
{name: "compiler"},
|
||||
{name: "interp"},
|
||||
{name: "invalidmain"},
|
||||
{name: "invalidname"},
|
||||
{name: "linker-flashoverflow", target: "cortex-m-qemu"},
|
||||
{name: "linker-ramoverflow", target: "cortex-m-qemu"},
|
||||
{name: "linker-undefined", target: "darwin/arm64"},
|
||||
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
package main
|
||||
|
||||
import _ "github.com/tinygo-org/tinygo/testdata/errors/invalidname"
|
||||
|
||||
// ERROR: # github.com/tinygo-org/tinygo/testdata/errors/invalidname
|
||||
// ERROR: invalidname{{[\\/]}}invalidname.go:3:9: invalid package name _
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// some comment to move the 'package' line
|
||||
|
||||
package _
|
||||
Reference in New Issue
Block a user