You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
no idea why
$ go test
# regexp
./regexp.go:498: cannot use src (type []byte) as type string in function argument
./regexp.go:499: cannot use string(b) (type string) as type []byte in return argument
./regexp.go:509: cannot use src (type []byte) as type string in function argument
# regexp
./regexp.go:498: cannot use src (type []byte) as type string in function argument
./regexp.go:499: cannot use string(b) (type string) as type []byte in return argument
./regexp.go:509: cannot use src (type []byte) as type string in function argument
FAIL regexp [build failed]
$
The text was updated successfully, but these errors were encountered:
I think it has something to do with regexp being imported twice in Package.imports for
pmain. One version is the version with the _test files, and one is the manual import
with "testing" and "regexp".
Yes, that's it. There are two package regexp here: the base one and the one being built
for the test. Both have the same import path, in some weird sense, and both are failing
to build.
The text was updated successfully, but these errors were encountered: