aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-12-18 15:43:59 +0100
committerMartin Odersky <odersky@gmail.com>2014-12-18 15:43:59 +0100
commit0424e5bcc63d6444e791a1c7722bb4db431f3347 (patch)
tree3d75c6683583448c701d0b49fff884025252cc99 /tests/pos
parent7c2238cd007b23e4fa502eacc3a6bebf988ea891 (diff)
downloaddotty-0424e5bcc63d6444e791a1c7722bb4db431f3347.tar.gz
dotty-0424e5bcc63d6444e791a1c7722bb4db431f3347.tar.bz2
dotty-0424e5bcc63d6444e791a1c7722bb4db431f3347.zip
Added test
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/i0306.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/pos/i0306.scala b/tests/pos/i0306.scala
new file mode 100644
index 000000000..5a242fa83
--- /dev/null
+++ b/tests/pos/i0306.scala
@@ -0,0 +1,17 @@
+object bar {
+
+ class C[T <: Seq[_]]
+
+ val x: AnyRef = new C
+
+ val y = x match {
+ case x: C[u] =>
+ def xx: u = xx
+ xx
+ }
+
+ val z= {
+ def xx: String = xx
+ xx
+ }
+}