diff options
Diffstat (limited to 'test/files/run/t5789.scala')
-rw-r--r-- | test/files/run/t5789.scala | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/files/run/t5789.scala b/test/files/run/t5789.scala index 461f6a4aae..677c9ca229 100644 --- a/test/files/run/t5789.scala +++ b/test/files/run/t5789.scala @@ -5,10 +5,17 @@ import scala.tools.partest.ReplTest object Test extends ReplTest { - override def extraSettings = "-Yinline" + override def extraSettings = "-Yopt:l:classpath" def code = """ val n = 2 () => n """ + + // replace indylambda function names by <function0> + override def eval() = { + val lines = super.eval + val r = """\$\$Lambda.*""".r + lines.map(l => r.replaceAllIn(l, "<function0>")) + } } |