Commit 071e963e authored by Robert Griesemer's avatar Robert Griesemer

- fixed bug that wasn't caught by 6g (but by gccgo)

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=17380
CL=17380
parent f39b518b
......@@ -142,7 +142,7 @@ func ExprType(x *Node.Expr) *Node.Type {
func (P *Parser) NoType(x *Node.Expr) *Node.Expr {
if x != nil && x.tok == Scanner.TYPE {
P.Error(x.pos, "expected expression, found type");
x = Node.NewLit(x.pos, Scanner.INT, 0);
x = Node.NewLit(x.pos, Scanner.INT, "");
}
return x;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment