Skip to content

cmd/compile: incorrect name in error message #21747

Closed
@dsnet

Description

@dsnet

Consider the following (invalid) Go code:

type x struct{}

func (x) Read()

The Go1.9 compiler complains with:

./main.go:7:6: missing function body for "_"

On Go1.8, it complained with:

./main.go:7: missing function body for "x.Read"

Edit: added type x struct{}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions