summaryrefslogtreecommitdiff
path: root/test/files/neg/t7756a.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t7756a.scala')
-rw-r--r--test/files/neg/t7756a.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t7756a.scala b/test/files/neg/t7756a.scala
new file mode 100644
index 0000000000..4453e84963
--- /dev/null
+++ b/test/files/neg/t7756a.scala
@@ -0,0 +1,11 @@
+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])
+ ()
+ }
+ }
+}