• Russ Cox's avatar
    more precise error message · 53ebd163
    Russ Cox authored
    package main
    
    func main() {
           var x interface {} = 42;
           switch x := x.(type) {
           case int:
           case foo:
           }
    }
    
    before:
    x.go:7: non-type case in type switch
    x.go:7: inappropriate case for a type switch
    
    now:
    x.go:7: foo: undefined
    
    R=ken
    OCL=31221
    CL=31221
    53ebd163
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
ar Loading commit data...
cc Loading commit data...
cov Loading commit data...
gc Loading commit data...
gobuild Loading commit data...
godefs Loading commit data...
godoc Loading commit data...
gofmt Loading commit data...
gotest Loading commit data...
ld Loading commit data...
nm Loading commit data...
prof Loading commit data...
clean.bash Loading commit data...
make.bash Loading commit data...