aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-01-28 15:38:52 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-02-03 15:10:37 +0100
commit19570936f689af76bc8f43d8084697393f244083 (patch)
treec2c0c37e511976439d78ea0d0a6b75dfaecbb80c /src
parent3f7b5d26cc89bd372773bcd121c758ca34eb4503 (diff)
downloaddotty-19570936f689af76bc8f43d8084697393f244083.tar.gz
dotty-19570936f689af76bc8f43d8084697393f244083.tar.bz2
dotty-19570936f689af76bc8f43d8084697393f244083.zip
Addressing review comments of #336
Diffstat (limited to 'src')
-rw-r--r--src/dotty/tools/dotc/transform/FullParameterization.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/FullParameterization.scala b/src/dotty/tools/dotc/transform/FullParameterization.scala
index 4276f582c..4b205e542 100644
--- a/src/dotty/tools/dotc/transform/FullParameterization.scala
+++ b/src/dotty/tools/dotc/transform/FullParameterization.scala
@@ -150,6 +150,8 @@ trait FullParameterization {
* fully parameterized method definition derived from `originalDef`, which
* has `derived` as symbol and `fullyParameterizedType(originalDef.symbol.info)`
* as info.
+ * `abstractOverClass` defines weather the DefDef should abstract over type parameters
+ * of class that contained original defDef
*/
def fullyParameterizedDef(derived: TermSymbol, originalDef: DefDef, abstractOverClass: Boolean = true)(implicit ctx: Context): Tree =
polyDefDef(derived, trefs => vrefss => {
@@ -216,7 +218,7 @@ trait FullParameterization {
})
/** A forwarder expression which calls `derived`, passing along
- * - the type parameters and enclosing class parameters of `originalDef`,
+ * - if `abstractOverClass` the type parameters and enclosing class parameters of originalDef`,
* - the `this` of the enclosing class,
* - the value parameters of the original method `originalDef`.
*/