diff options
author | Dale Wijnand <dale.wijnand@gmail.com> | 2016-05-24 14:09:48 +0100 |
---|---|---|
committer | Dale Wijnand <dale.wijnand@gmail.com> | 2016-05-26 16:01:57 +0100 |
commit | 3873fcfcbcc6c7f0c1660c18e45b265170580546 (patch) | |
tree | 59952086ce1560c73654a610645e78c6baf2f595 /test/files/run/repl-parens.scala | |
parent | 65642d9f5ca6abc4836811fd0db0fc7d7b4dcb1c (diff) | |
download | scala-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.scala | 10 |
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>")) - } } |