summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/scalac/Global.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java
index 55a43a62f9..bb33050ac3 100644
--- a/sources/scalac/Global.java
+++ b/sources/scalac/Global.java
@@ -335,6 +335,9 @@ public class Global {
SHOW_VALUE_N),
new Tree[] {
unit.body[unit.body.length - 1]});
+ } else if (module == 0) {
+ // !!! make sure that Interpreter.scala is compiled
+ SHOW_DEFINITION();
}
unit.body = new Tree[] {
make.ModuleDef(0, 0, Name.fromString(CONSOLE_S+module), Tree.Empty,