The Go programming language
Go to file
Russ Cox 53ebd163c6 more precise error message
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
2009-07-06 16:29:28 -07:00
doc a few edits and simplifications. 2009-07-06 15:15:56 -07:00
include fix gotest by fixing nm -s to print in file order by storing a sequence number 2009-04-15 21:57:55 -07:00
lib tweak the newlines so the headers stand out better. 2009-06-22 14:18:23 -07:00
misc/xcode xcode config files, self-describing 2009-05-20 16:09:34 -07:00
pkg clear out pkg tree in clean.bash. 2009-05-20 11:12:05 -07:00
src more precise error message 2009-07-06 16:29:28 -07:00
test change bug163 to use actual non-letter in identifier 2009-07-03 13:33:00 -07:00
usr - install gofmt in src/cmd/gofmt 2009-06-16 12:03:32 -07:00