compiler: improve "function redeclared" error

This error can normally only happen with //go:linkname and such, but
it's nice to get an informative error message in that case.
This commit is contained in:
Ayke van Laethem
2019-12-31 18:47:00 +01:00
committed by Ron Evans
parent 69c1d802e1
commit 0933577e60
4 changed files with 34 additions and 16 deletions
+1 -1
View File
@@ -10,5 +10,5 @@ require (
go.bug.st/serial.v1 v0.0.0-20180827123349-5f7892a7bb45
golang.org/x/sys v0.0.0-20191010194322-b09406accb47 // indirect
golang.org/x/tools v0.0.0-20190227180812-8dcc6e70cdef
tinygo.org/x/go-llvm v0.0.0-20191124211856-b2db3df3f257
tinygo.org/x/go-llvm v0.0.0-20191215173731-ad71f3d24aae
)