summaryrefslogtreecommitdiff
path: root/test/files/run/reify_newimpl_19.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/reify_newimpl_19.scala')
-rw-r--r--test/files/run/reify_newimpl_19.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/reify_newimpl_19.scala b/test/files/run/reify_newimpl_19.scala
new file mode 100644
index 0000000000..0ea8ae6992
--- /dev/null
+++ b/test/files/run/reify_newimpl_19.scala
@@ -0,0 +1,18 @@
+import scala.reflect.mirror._
+
+object Test extends App {
+ class C {
+ type T
+ val code = reify {
+ List[T](2.asInstanceOf[T])
+ }
+ println(code.eval)
+ }
+
+ try {
+ new C { val T = Int }
+ } catch {
+ case ex: Throwable =>
+ println(ex)
+ }
+} \ No newline at end of file