diff options
Diffstat (limited to 'test/files/pos/t946.scala')
-rw-r--r-- | test/files/pos/t946.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/t946.scala b/test/files/pos/t946.scala new file mode 100644 index 0000000000..c4bd6e9ba4 --- /dev/null +++ b/test/files/pos/t946.scala @@ -0,0 +1,8 @@ +object pmbugbounds { + trait Bar + class Foo[t <: Bar] {} + + (new Foo[Bar]) match { + case _ : Foo[x] => null + } +} |