diff options
author | Paul Phillips <paulp@improving.org> | 2009-10-25 06:00:59 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-10-25 06:00:59 +0000 |
commit | 728775440ccd67928c25914a1e003ff9765ad80b (patch) | |
tree | bc0d55939eb9ed99cd869dc5a9dbbc1f7b4c4555 /src/compiler/scala/tools/nsc/typechecker/Implicits.scala | |
parent | 2cef1c58a54c996243fb85630cce841073c18650 (diff) | |
download | scala-728775440ccd67928c25914a1e003ff9765ad80b.tar.gz scala-728775440ccd67928c25914a1e003ff9765ad80b.tar.bz2 scala-728775440ccd67928c25914a1e003ff9765ad80b.zip |
Deprecation patrol.
compile scalac with -deprecation and not cause any machines to catch
fire. Most of the remaining warnings are glancing furtively at Tuple2,
waiting for the moment to pounce.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Implicits.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Implicits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala index 023c5c2920..a32f945553 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala @@ -473,7 +473,7 @@ self: Analyzer => } } def comesBefore(sym: Symbol, owner: Symbol) = - sym.pos.offset.getOrElse(0) < owner.pos.offset.getOrElse(Integer.MAX_VALUE) && + sym.pos.pointOrElse(0) < owner.pos.pointOrElse(Integer.MAX_VALUE) && !(owner.ownerChain contains sym) sym.isInitialized || |