summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2007-07-02 16:48:56 +0000
committerLex Spoon <lex@lexspoon.org>2007-07-02 16:48:56 +0000
commit1219180c5fb2e7ec74f636938c1a7b78ca09fc93 (patch)
treef1691e90b5dcc8933c818e12442ae68ef46e9878
parent01292462bee9479f4ef5731f8ad7d4d8b00cc805 (diff)
downloadscala-1219180c5fb2e7ec74f636938c1a7b78ca09fc93.tar.gz
scala-1219180c5fb2e7ec74f636938c1a7b78ca09fc93.tar.bz2
scala-1219180c5fb2e7ec74f636938c1a7b78ca09fc93.zip
Use "res" instead of "unnamed" as the base of
variable names generated by the interpreter.
-rw-r--r--src/compiler/scala/tools/nsc/symtab/StdNames.scala2
-rw-r--r--test/files/run/interpreter.check2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/StdNames.scala b/src/compiler/scala/tools/nsc/symtab/StdNames.scala
index 6bcc6e4126..7ca5d64b02 100644
--- a/src/compiler/scala/tools/nsc/symtab/StdNames.scala
+++ b/src/compiler/scala/tools/nsc/symtab/StdNames.scala
@@ -76,7 +76,7 @@ trait StdNames {
val INTERPRETER_WRAPPER_SUFFIX = "$object"
val INTERPRETER_LINE_PREFIX = "line"
- val INTERPRETER_VAR_PREFIX = "unnamed"
+ val INTERPRETER_VAR_PREFIX = "res"
val INTERPRETER_IMPORT_WRAPPER = "$iw"
def LOCAL(clazz: Symbol) = newTermName(LOCALDUMMY_PREFIX_STRING + clazz.name+">")
diff --git a/test/files/run/interpreter.check b/test/files/run/interpreter.check
index 5e56f05cf2..e06fcf44ce 100644
--- a/test/files/run/interpreter.check
+++ b/test/files/run/interpreter.check
@@ -3,7 +3,7 @@ Type :help for more information.
scala>
scala>
-scala> unnamed0: Int = 7
+scala> res0: Int = 7
scala> | | | | gcd: (int,int)int