From d49c09e3f67d780d2757085e02b0a28d333527c4 Mon Sep 17 00:00:00 2001 From: Denys Shabalin Date: Wed, 19 Feb 2014 17:20:35 +0100 Subject: Fix quasiquote terminology to be consistent with Scheme 1. Rename cardinality into rank. Shorter word, easier to understand, more appropriate in our context. 2. Previously we called any dollar substitution splicing but this is not consistent with Scheme where splicing is substitution with non-zero rank. So now $foo is unquoting and ..$foo and ...$foo is unquote splicing or just splicing. Correspondingly splicee becomes unquotee. 3. Rename si7980 test into t7980 --- test/files/neg/t7980.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/neg/t7980.scala (limited to 'test/files/neg/t7980.scala') diff --git a/test/files/neg/t7980.scala b/test/files/neg/t7980.scala new file mode 100644 index 0000000000..b21907de54 --- /dev/null +++ b/test/files/neg/t7980.scala @@ -0,0 +1,8 @@ +object Test extends App { + import scala.reflect.runtime.universe._ + def Name[T:TypeTag](name:String): T = implicitly[TypeTag[T]] match { + case t => newTypeName(name).asInstanceOf[T] + } + val X = "ASDF" + println(q"class ${Name(X)} { }") +} -- cgit v1.2.3