diff options
Diffstat (limited to 'test/files/pos/exhaust_alternatives.scala')
-rw-r--r-- | test/files/pos/exhaust_alternatives.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/exhaust_alternatives.scala b/test/files/pos/exhaust_alternatives.scala new file mode 100644 index 0000000000..cc81d0be7d --- /dev/null +++ b/test/files/pos/exhaust_alternatives.scala @@ -0,0 +1,10 @@ +sealed abstract class X +sealed case class A(x: Boolean) extends X +case object B extends X + +object Test { + def test(x: X) = x match { + case A(true) => + case A(false) | B => + } +}
\ No newline at end of file |