main: make sure typecheck errors are correctly reported

This commit is contained in:
Ayke van Laethem
2024-10-12 10:50:34 +02:00
committed by Ayke
parent df724f5827
commit 2690b243ea
3 changed files with 10 additions and 0 deletions
+1
View File
@@ -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"},
+6
View File
@@ -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
View File
@@ -0,0 +1,3 @@
// some comment to move the 'package' line
package _