aboutsummaryrefslogtreecommitdiff
path: root/tests/run/i789.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/i789.scala')
-rw-r--r--tests/run/i789.scala20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/run/i789.scala b/tests/run/i789.scala
new file mode 100644
index 000000000..99b081f0a
--- /dev/null
+++ b/tests/run/i789.scala
@@ -0,0 +1,20 @@
+ trait Periods { self: Context =>
+
+ def atPhase(id: Int): Unit = println(s"atPhase: $id")
+
+ }
+
+ class Phase(val id: Int)
+
+ trait Phases { self: Context =>
+ def atPhase(phase: Phase): Unit = self.atPhase(phase.id)
+ }
+
+ trait Context extends Phases with Periods
+
+ object Test extends Context {
+
+ def main(args: Array[String]) = atPhase(new Phase(2))
+
+ }
+