aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/volatile.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/volatile.check')
-rw-r--r--tests/untried/neg/volatile.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/volatile.check b/tests/untried/neg/volatile.check
new file mode 100644
index 000000000..b90428412
--- /dev/null
+++ b/tests/untried/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