mirror of
https://github.com/golang/go
synced 2024-11-22 06:34:40 -07:00
Automated g4 rollback of changelist 29478.
*** Reason for rollback *** these semicolons are necessary only because of a bug in 6g *** Original change description *** add missing semicolons in example TBR=gri OCL=29624 CL=29624
This commit is contained in:
parent
fbcbcdbb1d
commit
65ec16b637
@ -3270,14 +3270,14 @@ and the variables are initialized once before the statement is entered.
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
switch tag {
|
switch tag {
|
||||||
default: s3();
|
default: s3()
|
||||||
case 0, 1, 2, 3: s1();
|
case 0, 1, 2, 3: s1()
|
||||||
case 4, 5, 6, 7: s2();
|
case 4, 5, 6, 7: s2()
|
||||||
}
|
}
|
||||||
|
|
||||||
switch x := f(); {
|
switch x := f(); {
|
||||||
case x < 0: return -x;
|
case x < 0: return -x
|
||||||
default: return x;
|
default: return x
|
||||||
}
|
}
|
||||||
|
|
||||||
switch { // missing expression means "true"
|
switch { // missing expression means "true"
|
||||||
|
Loading…
Reference in New Issue
Block a user