Skip to content

internal compiler error: var without type, init #901

@edsrzf

Description

@edsrzf
1. What is a short input program that triggers the error?
package main

type Type int

func main() {
    switch t := a.(type) {
        case Type:
    }
}

2. What is the full compiler output?
test2.go:6: undefined: a
test2.go:7: internal compiler error: var without type, init: t

3. What version of the compiler are you using?  (Run it with the -V flag.)
6g version 5767+

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