blob: 549abd5e646bdb782c98e1c7c04e2a65a5d7c8c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// this class's bytecode, compiled under -optimize is analyzed by the test
// method a's bytecode should be identical to method b's bytecode
class SameBytecode {
def a(xs: List[Int]) = xs match {
case x :: _ => x
}
def b(xs: List[Int]) = xs match {
case xs: ::[Int] => xs.hd$1
}
}
|