]> Cypherpunks repositories - gostls13.git/commit
better error message + line numbers
authorRuss Cox <rsc@golang.org>
Mon, 6 Jul 2009 23:05:48 +0000 (16:05 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 6 Jul 2009 23:05:48 +0000 (16:05 -0700)
commit769919c4eeedaf5798688708fb0334fcb9607b57
tree9d6290512c51d480e391bea35cb87077e6235176
parent4793400bd1a58895075504e5f5fc87654a2c702c
better error message + line numbers

package main
func main() {
       var x interface{};
       switch x {
       case 41:
       case "b":
       }
}

before:
x.go:5: fatal error: exprcmp

now:
x.go:5: illegal types for operand: EQ
interface { }
int
x.go:6: illegal types for operand: EQ
interface { }
string

R=ken
OCL=31217
CL=31219
src/cmd/gc/swt.c