diff options
author | Dmitry Petrashko <dark@d-d.me> | 2014-12-31 15:14:48 +0100 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2014-12-31 15:14:48 +0100 |
commit | b25325233cbc88707f8757de5e4c028b1cf314b3 (patch) | |
tree | 01f5d493e09991e44e8da2d99b605f0609d17f7f /tests/pos | |
parent | 344b055e23ceea6fd57d6240f5dda732e41028bd (diff) | |
parent | 0424e5bcc63d6444e791a1c7722bb4db431f3347 (diff) | |
download | dotty-b25325233cbc88707f8757de5e4c028b1cf314b3.tar.gz dotty-b25325233cbc88707f8757de5e4c028b1cf314b3.tar.bz2 dotty-b25325233cbc88707f8757de5e4c028b1cf314b3.zip |
Merge pull request #309 from dotty-staging/fix/#306-avoidance-problem
Avpid returning ExprTypes from blocks.
Diffstat (limited to 'tests/pos')
-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 + } +} |