diff options
author | Lex Spoon <lex@lexspoon.org> | 2007-07-02 16:48:56 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2007-07-02 16:48:56 +0000 |
commit | 1219180c5fb2e7ec74f636938c1a7b78ca09fc93 (patch) | |
tree | f1691e90b5dcc8933c818e12442ae68ef46e9878 | |
parent | 01292462bee9479f4ef5731f8ad7d4d8b00cc805 (diff) | |
download | scala-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.scala | 2 | ||||
-rw-r--r-- | test/files/run/interpreter.check | 2 |
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 |