blob: 03ba765fde27621302ce4bd6fb1e5a2d0e8f9204 (
plain) (
tree)
|
|
import scala.reflect.runtime.universe._
import scala.tools.reflect.Eval
object Test extends dotty.runtime.LegacyApp {
reify {
class Y {
def y = 100
}
trait Z { this: Y =>
val z = 2 * y
}
class X extends Y with Z {
def println() = Predef.println(z)
}
new X().println()
}.eval
}
|