aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1352.scala
blob: b73ef33fc2cd598aaf8d8f28276523a0fb4fc32e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
object Test {
  trait A
  trait B
  abstract sealed class Parent
  class Foo extends Parent with A
  class Bar extends Parent with B

  (null: Parent) match {
    case (_: A) | (_: B) =>
      /*
       * This case would incorrectly be reported as an error,
       * due to a typo in IsInstanceOfEvaluator
       */
  }
}