summaryrefslogtreecommitdiff
path: root/test/files/run/repl-parens.scala
diff options
context:
space:
mode:
authorDale Wijnand <dale.wijnand@gmail.com>2016-05-24 14:09:48 +0100
committerDale Wijnand <dale.wijnand@gmail.com>2016-05-26 16:01:57 +0100
commit3873fcfcbcc6c7f0c1660c18e45b265170580546 (patch)
tree59952086ce1560c73654a610645e78c6baf2f595 /test/files/run/repl-parens.scala
parent65642d9f5ca6abc4836811fd0db0fc7d7b4dcb1c (diff)
downloadscala-3873fcfcbcc6c7f0c1660c18e45b265170580546.tar.gz
scala-3873fcfcbcc6c7f0c1660c18e45b265170580546.tar.bz2
scala-3873fcfcbcc6c7f0c1660c18e45b265170580546.zip
Fully qualify types in REPL generated code
Diffstat (limited to 'test/files/run/repl-parens.scala')
-rw-r--r--test/files/run/repl-parens.scala10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/files/run/repl-parens.scala b/test/files/run/repl-parens.scala
index 43e642a806..613bb6f6af 100644
--- a/test/files/run/repl-parens.scala
+++ b/test/files/run/repl-parens.scala
@@ -1,6 +1,9 @@
import scala.tools.partest.ReplTest
object Test extends ReplTest {
+ // replace indylambda function names by <function0>
+ override def normalize(s: String) = """\$\$Lambda.*""".r.replaceAllIn(s, "<function0>")
+
def code = """
(2)
(2 + 2)
@@ -26,11 +29,4 @@ foo(5)(10)(15)+foo(5)(10)(15)
List(1) ++ List('a')
""".trim
-
- // replace indylambda function names by <function0>
- override def eval() = {
- val lines = super.eval
- val r = """\$\$Lambda.*""".r
- lines.map(l => r.replaceAllIn(l, "<function0>"))
- }
}