summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2004-02-02 13:02:28 +0000
committerburaq <buraq@epfl.ch>2004-02-02 13:02:28 +0000
commit08c65b09ef07b7ef893bd474092e007857402390 (patch)
tree763cbb1132ac1fa704710e72d8e342f8723d33f1 /test/files
parente6ad5066a8e81c9a75abbcb009141da264b1da71 (diff)
downloadscala-08c65b09ef07b7ef893bd474092e007857402390.tar.gz
scala-08c65b09ef07b7ef893bd474092e007857402390.tar.bz2
scala-08c65b09ef07b7ef893bd474092e007857402390.zip
bugfix
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/regularpatmat.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/regularpatmat.scala b/test/files/run/regularpatmat.scala
index 2412c1786b..db52c47723 100644
--- a/test/files/run/regularpatmat.scala
+++ b/test/files/run/regularpatmat.scala
@@ -668,6 +668,25 @@ object testNN {
}
}
+object testNO { // this does not need to be run, only compiled
+
+ trait Operator;
+ case class Increment extends Operator;
+ case class Decrement extends Operator;
+
+ trait Expression {
+ def eval = match {
+ case Operation (v: Value, o: Increment) => v
+ case Operation (v: Value, d: Decrement) => v
+ }
+ }
+
+ case class Value extends Expression;
+ case class Operation (e: Expression, o: Operator) extends Expression;
+
+
+}
+
object Test {
def main(args: Array[String]): Unit = {
Console.println("pretest");