summaryrefslogtreecommitdiff
path: root/test/pending/run/t6591_4.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/run/t6591_4.scala')
-rw-r--r--test/pending/run/t6591_4.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/pending/run/t6591_4.scala b/test/pending/run/t6591_4.scala
new file mode 100644
index 0000000000..f20c8e6127
--- /dev/null
+++ b/test/pending/run/t6591_4.scala
@@ -0,0 +1,17 @@
+import scala.reflect.runtime.universe._
+import scala.tools.reflect.ToolBox
+import scala.tools.reflect.Eval
+
+class O { class I }
+
+class A extends O {
+ val code = reify {
+ val v: I = new I
+ v
+ }
+ println(showRaw(code))
+}
+
+object Test extends App {
+ val v: A#I = (new A).code.eval
+}