Skip to content
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/compile: imperfect error message for embedding alias of pointer types #22004

Closed
go101 opened this issue Sep 24, 2017 · 1 comment
Closed

Comments

@go101
Copy link

go101 commented Sep 24, 2017

What version of Go are you using (go version)?

go version go1.9 linux/amd64

Does this issue reproduce with the latest release?

yes

What did you do?

package main

type T *int

type S struct {
	T // error: embedded type cannot be a pointer
}

What did you expect to see?

The error message should be embedded type cannot be alias to a pointer for better.

@go101
Copy link
Author

go101 commented Sep 24, 2017

sorry, this is a bad report.
T is not an alias. :)

[edit] maybe embedded type cannot be a named pointer is better.

@go101 go101 closed this as completed Sep 24, 2017
@golang golang locked and limited conversation to collaborators Sep 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants