diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2011-10-20 22:28:44 +0000 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2011-10-20 22:28:44 +0000 |
commit | 3921e5be742ff9523825037056e82b7b82db5932 (patch) | |
tree | 046e7f6ff585ba66c80825132974f52f5a3638e0 /src/compiler/scala/tools/nsc/typechecker/Namers.scala | |
parent | 24eb4c5bb5b3ed0e6bb4ede3e68876cdbe7d18fc (diff) | |
download | scala-3921e5be742ff9523825037056e82b7b82db5932.tar.gz scala-3921e5be742ff9523825037056e82b7b82db5932.tar.bz2 scala-3921e5be742ff9523825037056e82b7b82db5932.zip |
dependent methods types are now always enabled
for now, left the old if(settings.YdepMethTpes.value) guards in comments
removed *.flags containing -Ydependent-method-types also updated one
check file with one fewer error
no review
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index 874d1149a0..1b2b737074 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -1459,15 +1459,11 @@ trait Namers { self: Analyzer => this(p.info) // can only refer to symbols in earlier parameter sections // (if the extension is enabled) - if (opt.dependentMethodTypes) - okParams ++= vps + okParams ++= vps } } - private def errorAddendum = ( - if (opt.dependentMethodTypes) - ": parameter appears in the type of another parameter in the same section or an earlier one" - else "" - ) + private def errorAddendum = + ": parameter appears in the type of another parameter in the same section or an earlier one" } @deprecated("Use underlyingSymbol instead", "2.10.0") |