aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-11-01 18:33:56 +0100
committerMartin Odersky <odersky@gmail.com>2014-11-09 19:08:58 +0100
commit43075bb832c3b4fe080c24a20ecf8c4737d5cdd2 (patch)
tree680cc886c536c34b4c3718663386d1cb13be4924 /tests/pos
parent0119ffd3e285e43b63fb9c43c1c8b009174a1987 (diff)
downloaddotty-43075bb832c3b4fe080c24a20ecf8c4737d5cdd2.tar.gz
dotty-43075bb832c3b4fe080c24a20ecf8c4737d5cdd2.tar.bz2
dotty-43075bb832c3b4fe080c24a20ecf8c4737d5cdd2.zip
Improved version of mixin.
Now also handles all supercalls. Seems to do the right thing on pos/traits.scala. But does not pass most tests because the sym transformer forces too many things.
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/traits.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pos/traits.scala b/tests/pos/traits.scala
index 15310d5a4..db611eeb5 100644
--- a/tests/pos/traits.scala
+++ b/tests/pos/traits.scala
@@ -1,10 +1,10 @@
-trait B {
+trait B extends Object {
val z: Int
}
-trait T {
+trait T extends B {
var x = 2