aboutsummaryrefslogtreecommitdiff
path: root/tests/patmat/i2253.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/patmat/i2253.scala')
-rw-r--r--tests/patmat/i2253.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/patmat/i2253.scala b/tests/patmat/i2253.scala
new file mode 100644
index 000000000..8394a86df
--- /dev/null
+++ b/tests/patmat/i2253.scala
@@ -0,0 +1,7 @@
+sealed trait S
+object O extends S
+trait T
+
+class Test {
+ def m(s: S { val x: Int }) = s match { case _: T => ; }
+} \ No newline at end of file