diff options
author | Paul Phillips <paulp@improving.org> | 2011-08-24 17:11:55 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-08-24 17:11:55 +0000 |
commit | b9785280a7138a2bb52060faf94807aa0d07dec1 (patch) | |
tree | 870cc1930ac3d50cd07078260f58984224dd39a5 /test/files/pos/bug3578.scala | |
parent | 84fcf633d9ca507124806d64729cb8463bcebb69 (diff) | |
download | scala-b9785280a7138a2bb52060faf94807aa0d07dec1.tar.gz scala-b9785280a7138a2bb52060faf94807aa0d07dec1.tar.bz2 scala-b9785280a7138a2bb52060faf94807aa0d07dec1.zip |
Renamed tests named bugXXX to tXXX, no review.
Diffstat (limited to 'test/files/pos/bug3578.scala')
-rw-r--r-- | test/files/pos/bug3578.scala | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/files/pos/bug3578.scala b/test/files/pos/bug3578.scala deleted file mode 100644 index d984118208..0000000000 --- a/test/files/pos/bug3578.scala +++ /dev/null @@ -1,30 +0,0 @@ -object Test { - sealed abstract class JValue { - def ++(other: JValue) = { - def append(value1: JValue, value2: JValue): JValue = (value1, value2) match { - case (JNothing, x) => x - case (x, JNothing) => x - case (JObject(xs), x: JField) => JObject(xs ::: List(x)) - case (x: JField, JObject(xs)) => JObject(x :: xs) - case (JArray(xs), JArray(ys)) => JArray(xs ::: ys) - case (JArray(xs), v: JValue) => JArray(xs ::: List(v)) - case (v: JValue, JArray(xs)) => JArray(v :: xs) - case (f1: JField, f2: JField) => JObject(f1 :: f2 :: Nil) - case (JField(n, v1), v2: JValue) => JField(n, append(v1, v2)) - case (x, y) => JArray(x :: y :: Nil) - } - append(this, other) - } - } - - case object JNothing extends JValue - case object JNull extends JValue - case class JString(s: String) extends JValue - case class JDouble(num: Double) extends JValue - case class JInt(num: BigInt) extends JValue - case class JBool(value: Boolean) extends JValue - case class JField(name: String, value: JValue) extends JValue - case class JObject(obj: List[JField]) extends JValue - case class JArray(arr: List[JValue]) extends JValue -} - |