blob: 6b6a783299e3d5a45a154fcda7817bc3a972f815 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import scala.tools.partest.ReplTest
object Test extends ReplTest {
def code =
"""def f(x: => Int): Int = x
f _
"""
// replace indylambda function names by <function1>
override def eval() = {
val lines = super.eval
val r = """\$\$Lambda.*""".r
lines.map(l => r.replaceAllIn(l, "<function1>"))
}
}
|