diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t7756b.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/t7756b.scala b/test/files/pos/t7756b.scala new file mode 100644 index 0000000000..009248510d --- /dev/null +++ b/test/files/pos/t7756b.scala @@ -0,0 +1,13 @@ +// This is a pos test to show that the backported bug fix for SI-7756 is +// only enabled under -Xfuture. +object Test { + def test: Unit = { + trait TA[X <: CharSequence] + 0 match { + case _ => + // the bounds violation isn't reported. RefChecks seems to be too broadly disabled under virtpatmat: see 65340ed4ad2e + locally(null: TA[Object]) + () + } + } +} |