• Russ Cox's avatar
    better error message + line numbers · 769919c4
    Russ Cox authored
    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
    769919c4
swt.c 14.6 KB