summaryrefslogtreecommitdiff
path: root/test/files/neg/t6815.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t6815.check')
-rw-r--r--test/files/neg/t6815.check5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/t6815.check b/test/files/neg/t6815.check
new file mode 100644
index 0000000000..fae3819be1
--- /dev/null
+++ b/test/files/neg/t6815.check
@@ -0,0 +1,5 @@
+t6815.scala:15: error: stable identifier required, but Test.this.u.emptyValDef found.
+ Note that value emptyValDef is not stable because its type, Test.u.ValDef, is volatile.
+ case _: u.emptyValDef.T => // and, unlike in pos/t6185.scala, we shouldn't allow this.
+ ^
+one error found