diff options
Diffstat (limited to 'test/files/neg/t7980.scala')
-rw-r--r-- | test/files/neg/t7980.scala | 8 |
1 files changed, 8 insertions, 0 deletions
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)} { }") +} |