summaryrefslogtreecommitdiff
path: root/test/files/neg/t6040.check
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2012-08-07 12:22:10 +0200
committerAdriaan Moors <adriaan.moors@epfl.ch>2012-08-08 09:09:24 +0200
commitf76306b77fdc5b028d900141a40b8c98354641a9 (patch)
treeaa9d013fc35a5bfcfda3ff96e8225ed042a6efbf /test/files/neg/t6040.check
parent114367c0b2ce5f48186d4270c1724090fd77877b (diff)
downloadscala-f76306b77fdc5b028d900141a40b8c98354641a9.tar.gz
scala-f76306b77fdc5b028d900141a40b8c98354641a9.tar.bz2
scala-f76306b77fdc5b028d900141a40b8c98354641a9.zip
SI-6040 error on unauthorized extension Dynamic
authorization is easy to get: `import language.dynamics`
Diffstat (limited to 'test/files/neg/t6040.check')
-rw-r--r--test/files/neg/t6040.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t6040.check b/test/files/neg/t6040.check
new file mode 100644
index 0000000000..f44a81c471
--- /dev/null
+++ b/test/files/neg/t6040.check
@@ -0,0 +1,7 @@
+error: extension of type scala.Dynamic needs to be enabled
+by making the implicit value language.dynamics visible.
+This can be achieved by adding the import clause 'import language.dynamics'
+or by setting the compiler option -language:dynamics.
+See the Scala docs for value scala.language.dynamics for a discussion
+why the feature needs to be explicitly enabled.
+one error found