Skip to content

cmd/compile: allows to define blank methods on builtin types #11366

Closed
@dvyukov

Description

@dvyukov

go tool compile successfully compiles the following program:

package a

func (x int) _() {
    println(x)
}

func (x string) _() {
    println(x)
}

It must not be compiled.

go version devel +514014c Thu Jun 18 15:54:35 2015 +0200 linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions