aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/t6591_1.scala
blob: 8c152f68acd218edb48bef453d2d8cafa079cfa3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import scala.reflect.runtime.universe._
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval

trait O { trait I }

object A extends O {
  val impl = new I {}
}

object Test extends dotty.runtime.LegacyApp {
  val code = reify {
    val v: A.I = A.impl
    v
  }
  println(showRaw(code.tree))

  val v: A.I = code.eval
}