aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/ast/tpd.scala
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 /src/dotty/tools/dotc/ast/tpd.scala
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 'src/dotty/tools/dotc/ast/tpd.scala')
-rw-r--r--src/dotty/tools/dotc/ast/tpd.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/ast/tpd.scala b/src/dotty/tools/dotc/ast/tpd.scala
index 74ba79176..8c300c231 100644
--- a/src/dotty/tools/dotc/ast/tpd.scala
+++ b/src/dotty/tools/dotc/ast/tpd.scala
@@ -39,8 +39,8 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
def This(cls: ClassSymbol)(implicit ctx: Context): This =
untpd.This(cls.name).withType(cls.thisType)
- def Super(qual: Tree, mix: TypeName, inConstrCall: Boolean)(implicit ctx: Context): Super =
- ta.assignType(untpd.Super(qual, mix), qual, inConstrCall)
+ def Super(qual: Tree, mix: TypeName, inConstrCall: Boolean, mixinClass: Symbol = NoSymbol)(implicit ctx: Context): Super =
+ ta.assignType(untpd.Super(qual, mix), qual, inConstrCall, mixinClass)
def Apply(fn: Tree, args: List[Tree])(implicit ctx: Context): Apply =
ta.assignType(untpd.Apply(fn, args), fn, args)