aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0061.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t0061.scala')
-rw-r--r--tests/pos/t0061.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pos/t0061.scala b/tests/pos/t0061.scala
new file mode 100644
index 000000000..dd3f94f30
--- /dev/null
+++ b/tests/pos/t0061.scala
@@ -0,0 +1,10 @@
+object O {
+
+ class testClass ;
+
+ case class testA() extends testClass ; // works if you leave away "extends..."
+ // or if you write TestA
+ def ga( x:testClass ) = x match {
+ case testA() => ()
+ }
+}