summaryrefslogtreecommitdiff
path: root/test/files/neg/volatile.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/volatile.check')
-rw-r--r--test/files/neg/volatile.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/volatile.check b/test/files/neg/volatile.check
new file mode 100644
index 0000000000..b904284125
--- /dev/null
+++ b/test/files/neg/volatile.check
@@ -0,0 +1,7 @@
+volatile.scala:11: error: Inferred type C.this.D with C.this.E#T contains type selection from volatile type C.this.D with C.this.E
+ var sneak = { () => y.x }
+ ^
+volatile.scala:11: error: Inferred type () => C.this.D with C.this.E#T contains type selection from volatile type C.this.D with C.this.E
+ var sneak = { () => y.x }
+ ^
+two errors found