Age | Commit message (Collapse) | Author |
|
Small change to cmd/gc to catch a "fallthrough" in the final case of a switch.
R=golang-dev, rsc, mtj
CC=golang-dev
https://golang.org/cl/7841043
|
|
Fixes #4781.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7365056
|
|
Details:
- reorder.go: delete p8.
(Once expectation is changed per b/4627 it is identical to p1.)
- switch.go: added some more (degenerate) switches.
- range.go: improved error messages in a few cases.
- method.go: added tests of calls to promoted methods.
R=iant
CC=golang-dev
https://golang.org/cl/7306087
|
|
In switches without an expression, the compiler would not convert the implicit true to an interface, causing codegen errors.
Fixes #3980.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6497147
|
|
The compiler is incorrectly rejecting switches on arrays of
comparable types. It also doesn't catch incomparable structs
when typechecking the switch, leading to unreadable errors
during typechecking of the generated code.
Fixes #3894.
R=rsc
CC=gobot, golang-dev, r, remy
https://golang.org/cl/6442074
|
|
R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/5700056
|
|
X ,s;^// \$G (\$D/)?\$F\.go *$;// compile;g
X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A *$;// build;g
X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A && \./\$A\.out *$;// run;g
X ,s;^// errchk \$G( -e)? (\$D/)?\$F\.go *$;// errorcheck;g
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5671080
|
|
R=ken, ken
CC=golang-dev
https://golang.org/cl/5373079
|
|
The ken directory is untouched so we have some examples with explicit semis.
R=gri
CC=golang-dev
https://golang.org/cl/2157041
|
|
also template/template.go, missed last time.
R=r
DELTA=116 (61 added, 10 deleted, 45 changed)
OCL=34620
CL=34622
|
|
1) fix print statements, panic statements (parentheses required)
2) len is now allowed as a var name (bug053)
R=gri
OCL=14106
CL=14106
|
|
SVN=126336
|
|
expressions.
start of generics for calling builtin
functions
start of map type
'any' demoted from reserved word to type
SVN=122808
|
|
- updated go_lang.txt to be more uniform and match the implementation
- made makehtml work on Mac
- fixed a couple of bugs in go.atg
SVN=121520
|
|
SVN=121464
|