Skip to content

cmd/compile: internal compiler error: method receiver, when missing function type on anonymous function #22389

@anisus

Description

@anisus

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

go1.9.1 windows/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

windows/amd64

What did you do?

Missed typing the parameter type for an anonymous function which is using the same parameter name as a variable defined in surrounding function.

It is reproducible in play.golang.org

https://play.golang.org/p/AP3xRF11H4

What did you expect to see?

No internal compiler error

What did you see instead?

internal compiler error: method receiver

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions