aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t6591_3.scala
blob: 5069b800e5d9e1edee06fa4fbf4bfdc3b2e1d142 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval

class O { class I }

object A extends O {
  val code = reify {
    val v: I = new I
    v
  }
  println(showRaw(code.tree))
}

object Test extends dotty.runtime.LegacyApp {
  val v: A.I = A.code.eval
}