mirror of https://github.com/golang/go.git
Without this change, the spec parses <-c.(type) as (<-c).(type) but parses <-c.(int) as <-(c.(int)). With this change, the former parses as <-(c.(type)). All three parsers already implement this rule, because they look for the "type" word during parsing of a standard type assertion. This change merely brings the spec in line with the implementations. http://code.google.com/p/go/source/browse/src/cmd/gc/go.y#801 http://code.google.com/p/go/source/browse/src/pkg/go/parser/parser.go#900 http://gcc.gnu.org/viewcvs/branches/gccgo/gcc/go/parse.cc?revision=155389&view=markup#l2469 Pointed out by Brett Kail on golang-nuts. R=gri CC=golang-dev https://golang.org/cl/182044 |
||
|---|---|---|
| .. | ||
| devel | ||
| gordon | ||
| progs | ||
| GoCourseDay1.pdf | ||
| GoCourseDay2.pdf | ||
| GoCourseDay3.pdf | ||
| Makefile | ||
| code.html | ||
| contribute.html | ||
| effective_go.html | ||
| gccgo_contribute.html | ||
| gccgo_install.html | ||
| go-logo-black.png | ||
| go-logo-blue.png | ||
| go_faq.html | ||
| go_for_cpp_programmers.html | ||
| go_lang_faq.html | ||
| go_mem.html | ||
| go_spec.html | ||
| go_talk-20091030.pdf | ||
| go_tutorial.html | ||
| go_tutorial.txt | ||
| godocs.js | ||
| htmlgen.go | ||
| install.html | ||
| logo-153x55.png | ||
| makehtml | ||
| prog.sh | ||
| root.html | ||
| sieve.gif | ||
| style.css | ||
| video-snap.jpg | ||