blob: b6951f71ee07d76fe8aa995b4ac161af03914971 (
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.head
}
}
|