• 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
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach_amd64 Loading commit data...
old/c Loading commit data...
pkg Loading commit data...
Make.386 Loading commit data...
Make.amd64 Loading commit data...
Make.arm Loading commit data...
Make.conf Loading commit data...
all.bash Loading commit data...
clean.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...