summaryrefslogtreecommitdiff
path: root/test/files/neg/abstraction-from-volatile-type-error.check
diff options
context:
space:
mode:
authorNada Amin <namin@alum.mit.edu>2012-02-23 16:06:58 +0100
committerNada Amin <namin@alum.mit.edu>2012-02-23 16:06:58 +0100
commitf9f888d36a265052c67a2c486d569a4c75657eab (patch)
tree1bb20e6e8038eb2c619b079d9a0f9e13bcb87f19 /test/files/neg/abstraction-from-volatile-type-error.check
parentd5006b118f6ad1bf10ed35491cd0bda05fc88972 (diff)
downloadscala-f9f888d36a265052c67a2c486d569a4c75657eab.tar.gz
scala-f9f888d36a265052c67a2c486d569a4c75657eab.tar.bz2
scala-f9f888d36a265052c67a2c486d569a4c75657eab.zip
Add test for AbstractionFromVolatileTypeError.
Diffstat (limited to 'test/files/neg/abstraction-from-volatile-type-error.check')
-rw-r--r--test/files/neg/abstraction-from-volatile-type-error.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/abstraction-from-volatile-type-error.check b/test/files/neg/abstraction-from-volatile-type-error.check
new file mode 100644
index 0000000000..34ba0551a5
--- /dev/null
+++ b/test/files/neg/abstraction-from-volatile-type-error.check
@@ -0,0 +1,4 @@
+abstraction-from-volatile-type-error.scala:9: error: illegal abstraction from value with volatile type a.Tv
+ val tv : a.Tv
+ ^
+one error found