-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: program that shadows 'string' type fails to compile with go 1.11 #27584
Comments
I am unable to reproduce this. |
It is only reproducible if the code is outside of GOPATH. |
Still cannot reproduce. |
I cannot reproduce this error either using the same version, outside Could you please:
I am not exactly sure how |
It looks it is not 100% reproducible. I checked it on another computer, with the following tries, all are outside of GOPATH.
On the first computer (not nearby now), So I doubt that this problem might be related to cache. |
For the cases, where you are able to reproduce, please provide the output by adding the |
Another one:
|
The new errors are some different:
|
Aha, the last one looks succeeded. |
Another success but with some different messages:
|
@go101 please can you confirm whether this is reproducible with a clean
Or some such. |
It is still reproducible.
|
@go101 I'm not able to reproduce this either. Are you sure you're on Can you please attach the output of:
|
|
continue:
once |
Although this issue is not 100% reproducible. I do find it has a high possibility to reproduce by follow the following steps:
|
Got a reproduction. Thanks for your persistence.
|
Change https://golang.org/cl/134915 mentions this issue: |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.11 linux/amd64
Does this issue reproduce with the latest release?
yes
What did you do?
What did you expect to see?
run okay.
What did you see instead?
build error:
It runs okay with Go 1.10.3.
The text was updated successfully, but these errors were encountered: