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