summaryrefslogtreecommitdiff
path: root/test/files/neg/t6844.check
diff options
context:
space:
mode:
authorDenys Shabalin <denys.shabalin@typesafe.com>2014-01-16 11:58:38 +0100
committerDenys Shabalin <denys.shabalin@typesafe.com>2014-01-16 12:45:28 +0100
commit393829489a1e352c2ed659b16b6bea24069f4f9a (patch)
tree8865fa18ef22b959fd5c6b53689afbb0ded84ee3 /test/files/neg/t6844.check
parent681308a3aa737be1dae0f702fddadce88c70f90e (diff)
downloadscala-393829489a1e352c2ed659b16b6bea24069f4f9a.tar.gz
scala-393829489a1e352c2ed659b16b6bea24069f4f9a.tar.bz2
scala-393829489a1e352c2ed659b16b6bea24069f4f9a.zip
SI-6844 restrict splicing in parameter position
Previously were a bit too permissive on how splicing in function parameter position worked. This made confusing things like possible: val x = TermName(“x”) q”def foo($x)” Now you can either splice trees in that position (ValDefs) or you have to provide type if you splice a name.
Diffstat (limited to 'test/files/neg/t6844.check')
-rw-r--r--test/files/neg/t6844.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t6844.check b/test/files/neg/t6844.check
new file mode 100644
index 0000000000..1fc2485520
--- /dev/null
+++ b/test/files/neg/t6844.check
@@ -0,0 +1,6 @@
+t6844.scala:4: error: type mismatch;
+ found : reflect.runtime.universe.TermName
+ required: reflect.runtime.universe.Tree
+ q"def foo($x)"
+ ^
+one error found