cmd/compile: shouldn't report argument mismatch errors for using unexported functions #57489
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Accidentally called
.join
(lower-case 'j') and expected an error, instead I am told I can supply a string array to the function.What did you see instead?
./test.go:12:2: arr declared but not used ./test.go:14:23: join not exported by package filepath ./test.go:14:33: too many arguments in call to filepath.join have (string, string) want ([]string)
The text was updated successfully, but these errors were encountered: