aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform/SuperAccessors.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-08-11 10:32:48 +0200
committerMartin Odersky <odersky@gmail.com>2014-08-11 10:41:23 +0200
commitc7f817f80d7a07c5d3a15eac03e4520097d81ecb (patch)
tree3424278acf49ed9802a4f67f7bc02bf4a8793ab2 /src/dotty/tools/dotc/transform/SuperAccessors.scala
parentb89c4afca19cb77e17c059e75982c537094f1ec8 (diff)
downloaddotty-c7f817f80d7a07c5d3a15eac03e4520097d81ecb.tar.gz
dotty-c7f817f80d7a07c5d3a15eac03e4520097d81ecb.tar.bz2
dotty-c7f817f80d7a07c5d3a15eac03e4520097d81ecb.zip
Added some more methods as infix tree operations:
asInstance/isInstance/ensureConforms/and/or. They replace some former "mk..." methods.
Diffstat (limited to 'src/dotty/tools/dotc/transform/SuperAccessors.scala')
-rw-r--r--src/dotty/tools/dotc/transform/SuperAccessors.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/SuperAccessors.scala b/src/dotty/tools/dotc/transform/SuperAccessors.scala
index 9516f84a0..2496cf5a9 100644
--- a/src/dotty/tools/dotc/transform/SuperAccessors.scala
+++ b/src/dotty/tools/dotc/transform/SuperAccessors.scala
@@ -276,7 +276,7 @@ class SuperAccessors extends MacroTransform with IdentityDenotTransformer { this
.installAfter(thisTransformer)
val superAcc =
Super(This(currentClass), tpnme.EMPTY, inConstrCall = false).select(alias)
- DefDef(sym, ensureConforms(superAcc, sym.info.widen))
+ DefDef(sym, superAcc.ensureConforms(sym.info.widen))
}
return forwarder(ctx.withPhase(thisTransformer.next))
}