diff options
author | Martin Odersky <odersky@gmail.com> | 2014-12-18 15:43:59 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-12-18 15:43:59 +0100 |
commit | 0424e5bcc63d6444e791a1c7722bb4db431f3347 (patch) | |
tree | 3d75c6683583448c701d0b49fff884025252cc99 /tests/pos/i0306.scala | |
parent | 7c2238cd007b23e4fa502eacc3a6bebf988ea891 (diff) | |
download | dotty-0424e5bcc63d6444e791a1c7722bb4db431f3347.tar.gz dotty-0424e5bcc63d6444e791a1c7722bb4db431f3347.tar.bz2 dotty-0424e5bcc63d6444e791a1c7722bb4db431f3347.zip |
Added test
Diffstat (limited to 'tests/pos/i0306.scala')
-rw-r--r-- | tests/pos/i0306.scala | 17 |
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 + } +} |