diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-12-12 11:47:23 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-12-12 11:47:23 -0800 |
commit | d9f623db0ff1d20040939fbb9e15d4d4e5887c75 (patch) | |
tree | da1abbb6201a2aefd22654bc42ef569b9657f7ed /src/intellij/test/files/pos | |
parent | 53eab9a1911d8549121d7fd3c6c68872a8655cf4 (diff) | |
parent | 654912f5020d4f42dff8e2f5a17bdfa5d37befa5 (diff) | |
download | scala-d9f623db0ff1d20040939fbb9e15d4d4e5887c75.tar.gz scala-d9f623db0ff1d20040939fbb9e15d4d4e5887c75.tar.bz2 scala-d9f623db0ff1d20040939fbb9e15d4d4e5887c75.zip |
Merge pull request #4078 from gbasler/topic/fix-analysis-budget
Avoid the `CNF budget exceeded` exception via smarter translation into CNF.
Diffstat (limited to 'src/intellij/test/files/pos')
-rw-r--r-- | src/intellij/test/files/pos/virtpatmat_exhaust_big.scala | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/intellij/test/files/pos/virtpatmat_exhaust_big.scala b/src/intellij/test/files/pos/virtpatmat_exhaust_big.scala new file mode 100644 index 0000000000..41aef3226e --- /dev/null +++ b/src/intellij/test/files/pos/virtpatmat_exhaust_big.scala @@ -0,0 +1,34 @@ +sealed abstract class Z +object Z { + object Z0 extends Z + case class Z1() extends Z + object Z2 extends Z + case class Z3() extends Z + object Z4 extends Z + case class Z5() extends Z + object Z6 extends Z + case class Z7() extends Z + object Z8 extends Z + case class Z9() extends Z + object Z10 extends Z + case class Z11() extends Z + object Z12 extends Z + case class Z13() extends Z + object Z14 extends Z + case class Z15() extends Z + object Z16 extends Z + case class Z17() extends Z + object Z18 extends Z + case class Z19() extends Z +} + +// drop any case and it will report an error +object Test { + import Z._ + def foo(z: Z) = z match { + case Z0 | Z1() | Z2 | Z3() | Z4 | Z5() | Z6 | Z7() | Z8 | Z9() | + Z10 | Z11() | Z12 | Z13() | Z14 | Z15() | Z16 | Z17() | Z18 | Z19() + => + } +} +- |