aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t4897.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t4897.scala')
-rw-r--r--tests/pending/run/t4897.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pending/run/t4897.scala b/tests/pending/run/t4897.scala
new file mode 100644
index 000000000..a2ec3de37
--- /dev/null
+++ b/tests/pending/run/t4897.scala
@@ -0,0 +1,10 @@
+class CSuper {
+ object A
+}
+class C extends CSuper {
+ def f = (A: AnyRef) match { case _: A.type => "joepie" }
+}
+
+object Test extends C with App {
+ println(f)
+} \ No newline at end of file