summaryrefslogtreecommitdiff
path: root/test/files/run/t5270.scala
blob: 476b610148f23f56827da69dd719e7697b98b2e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import scala.reflect.mirror._

object Test extends App {
  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
}