Skip to content

cmd/compile: imperfect error message for embedding alias of pointer types #22004

@zigo101

Description

@zigo101

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions