From b25a55b66f8879d83446236ec82973dcd58866c4 Mon Sep 17 00:00:00 2001 From: rustanleino Date: Fri, 16 Oct 2009 01:13:00 +0000 Subject: Implicitly declare as local variables undeclared variables occurring as LHS's of CALL and RECEIVE statements (as was already done for FORK statements). --- Chalice/src/PrettyPrinter.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Chalice/src/PrettyPrinter.scala') diff --git a/Chalice/src/PrettyPrinter.scala b/Chalice/src/PrettyPrinter.scala index fb94f711..a97a04f9 100644 --- a/Chalice/src/PrettyPrinter.scala +++ b/Chalice/src/PrettyPrinter.scala @@ -90,7 +90,7 @@ object PrintProgram { print(id + ": " + t.id) rhs match { case None => case Some(rhs) => print(" := "); Rhs(rhs) } println(Semi) - case Call(outs, obj, id, args) => + case Call(_, outs, obj, id, args) => print("call ") outs match { case Nil => @@ -150,7 +150,7 @@ object PrintProgram { println(Semi) case Send(ch, args) => print("send "); Expr(ch); print("("); ExprList(args); print(")"); println(Semi) - case Receive(ch, outs) => + case Receive(_, ch, outs) => print("receive ") outs match { case Nil => -- cgit v1.2.3