From 1219180c5fb2e7ec74f636938c1a7b78ca09fc93 Mon Sep 17 00:00:00 2001 From: Lex Spoon Date: Mon, 2 Jul 2007 16:48:56 +0000 Subject: Use "res" instead of "unnamed" as the base of variable names generated by the interpreter. --- src/compiler/scala/tools/nsc/symtab/StdNames.scala | 2 +- 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 -- cgit v1.2.3