blob: 5c9a6b76916684599374f0ec158441da5117c913 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import scala.tools.partest.JavapTest
object Test extends JavapTest {
def code = """
|object Betty {
| List(1,2,3) filter (_ % 2 != 0) map (_ * 2)
|}
|:javap -fun Betty
""".stripMargin
// two anonfuns of Betty
override def yah(res: Seq[String]) = {
def filtered = res filter (_ contains "public final class Betty")
2 == filtered.size
}
}
|