summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/scalac/ast/parser/Parser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/ast/parser/Parser.java b/sources/scalac/ast/parser/Parser.java
index 6481ac730e..45ce77899e 100644
--- a/sources/scalac/ast/parser/Parser.java
+++ b/sources/scalac/ast/parser/Parser.java
@@ -40,7 +40,7 @@ public class Parser implements Tokens {
/** this is the general parse method
*/
public Tree[] parse() {
- Tree[] ts = compilationUnit();
+ Tree[] ts = s.unit.console ? templateStatSeq() : compilationUnit();
accept(EOF);
return ts;
}