aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/run/i789.check1
-rw-r--r--tests/run/i789.scala20
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/run/i789.check b/tests/run/i789.check
new file mode 100644
index 000000000..d41f69423
--- /dev/null
+++ b/tests/run/i789.check
@@ -0,0 +1 @@
+atPhase: 2
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))
+
+ }
+