- fixed unrelated typo
R=rsc
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=30175
CL=30175
pos := p.pos;
p.expect(token.RETURN);
var x []ast.Expr;
- if p.tok != token.SEMICOLON && p.tok != token.RBRACE {
+ if p.tok != token.SEMICOLON && p.tok != token.CASE && p.tok != token.DEFAULT && p.tok != token.RBRACE {
x = p.parseExpressionList();
}
func (p *parser) parseTypeCaseClause() *ast.TypeCaseClause {
if p.trace {
- defer un(trace(p, "CaseClause"));
+ defer un(trace(p, "TypeCaseClause"));
}
// TypeSwitchCase