- adjust my code and tests to new function syntax
R=r
OCL=14939
CL=14941
diff --git a/usr/gri/gosrc/parser.go b/usr/gri/gosrc/parser.go
index 023a0d8..6cccb55 100644
--- a/usr/gri/gosrc/parser.go
+++ b/usr/gri/gosrc/parser.go
@@ -597,7 +597,6 @@
func (P *Parser) ParseFunctionType() *Globals.Type {
P.Trace("FunctionType");
- P.Expect(Scanner.FUNC);
typ := P.ParseAnonymousSignature();
P.Ecart();
@@ -796,7 +795,7 @@
case Scanner.LBRACK: typ = P.ParseArrayType();
case Scanner.CHAN: typ = P.ParseChannelType();
case Scanner.INTERFACE: typ = P.ParseInterfaceType();
- case Scanner.FUNC: typ = P.ParseFunctionType();
+ case Scanner.LPAREN: typ = P.ParseFunctionType();
case Scanner.MAP: typ = P.ParseMapType();
case Scanner.STRUCT: typ = P.ParseStructType();
case Scanner.MUL: typ = P.ParsePointerType();
@@ -908,6 +907,7 @@
func (P *Parser) ParseFunctionLit() Globals.Expr {
P.Trace("FunctionLit");
+ P.Expect(Scanner.FUNC);
typ := P.ParseFunctionType();
P.ParseBlock(typ.scope);