aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t1843.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/pos/t1843.scala')
-rw-r--r--tests/pending/pos/t1843.scala24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/pending/pos/t1843.scala b/tests/pending/pos/t1843.scala
deleted file mode 100644
index 871b21346..000000000
--- a/tests/pending/pos/t1843.scala
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
-* Scala Compiler Will Crash On this File
-* ... Or Will It?
-*
-*/
-object Crash {
- trait UpdateType[A]
- case class StateUpdate[A](updateType : UpdateType[A], value : A)
- case object IntegerUpdateType extends UpdateType[Integer]
-
- //However this method will cause a crash
- def crash(updates: List[StateUpdate[_]]): Unit = {
- updates match {
- case Nil =>
- case u::us =>
- u match {
- //Line below seems to be the crashing line
- case StateUpdate(key, newValue) if (key == IntegerUpdateType) =>
- println("Requires a statement to induce the crash")
- case _ =>
- }
- }
- }
-}