From 43eaf5cb6424932f48e4fef582d855c56e6f7291 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 13 Aug 2003 13:17:01 +0000 Subject: *** empty log message *** --- sources/scalac/ast/parser/Parser.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sources/scalac/ast/parser/Parser.java') diff --git a/sources/scalac/ast/parser/Parser.java b/sources/scalac/ast/parser/Parser.java index c58c8af46e..8c01c53b41 100644 --- a/sources/scalac/ast/parser/Parser.java +++ b/sources/scalac/ast/parser/Parser.java @@ -1841,6 +1841,8 @@ public class Parser implements Tokens { Tree[] templateBody() { accept(LBRACE); Tree[] body = templateStatSeq(); + if (body.length == 0) + body = new Tree[]{Tree.Empty}; accept(RBRACE); return body; } -- cgit v1.2.3