aboutsummaryrefslogtreecommitdiff
path: root/tests/patmat/i2254.scala
blob: 23dd8ad7003d7d521d5855956ae00eb2b440a2fd (plain) (blame)
1
2
3
4
5
6
object Test {
  type OrAlias = Int | Float

  def m(s: OrAlias | String) = s match {
    case _: Int => ; case _: Float => ; case _: String => ; }
}