Skip to content

cmd/compile: use of untyped nil in switch #11668

Closed
@dvyukov

Description

@dvyukov

gc fails on the following program:

package a
func f() {
    switch nil {
    }
}
go.go:4: use of untyped nil

The program is correct and must be compiled without errors.

go version devel +9b04852 Sat Jul 11 00:08:50 2015 +0000 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