diff options
author | James Iry <jamesiry@gmail.com> | 2013-08-16 11:55:05 -0700 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-08-16 11:55:05 -0700 |
commit | 7b351dca8458f599f5fafef4daa307351031ef06 (patch) | |
tree | 7ea91d96228efd48b3cb251208ae33049cdefa1f /test/files | |
parent | 41ccb26bf5ef399035ec9bc702487d5b22815b17 (diff) | |
parent | 42e0f73311cfaf0883b85a1a41f400c3eb3cae96 (diff) | |
download | scala-7b351dca8458f599f5fafef4daa307351031ef06.tar.gz scala-7b351dca8458f599f5fafef4daa307351031ef06.tar.bz2 scala-7b351dca8458f599f5fafef4daa307351031ef06.zip |
Merge pull request #2838 from retronym/ticket/7716v2.10.3-RC1
SI-7716 Exclude patmat synthetics from bounds checking
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t7716.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/t7716.scala b/test/files/pos/t7716.scala new file mode 100644 index 0000000000..40117051ed --- /dev/null +++ b/test/files/pos/t7716.scala @@ -0,0 +1,16 @@ +object Test { + def test: Unit = { + val e: java.lang.Enum[_] = java.util.concurrent.TimeUnit.SECONDS + e match { case x => println(x) } + + + trait TA[X <: CharSequence] + val ta: TA[_] = new TA[String] {} + + ta match { + case _ => println("hi") + } + + def f(ta: TA[_]) = ta match { case _ => "hi" } + } +} |