summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2016-04-02 15:27:56 +0200
committerSimon Ochsenreither <simon@ochsenreither.de>2016-05-29 06:04:26 +0200
commitbe38ebba3f32816a150012727d3351570718bcf6 (patch)
tree358a93c430c8fbe507f0c758ade57502fddbede8 /src/compiler/scala/tools/nsc/typechecker/Contexts.scala
parent5562e1a2eb07b9a541b3eac85a809847e2d48763 (diff)
downloadscala-be38ebba3f32816a150012727d3351570718bcf6.tar.gz
scala-be38ebba3f32816a150012727d3351570718bcf6.tar.bz2
scala-be38ebba3f32816a150012727d3351570718bcf6.zip
Add since arg to deprecationWarning and use it
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Contexts.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Contexts.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
index bcc1ed3e64..16ef75c863 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
@@ -586,8 +586,8 @@ trait Contexts { self: Analyzer =>
}
- def deprecationWarning(pos: Position, sym: Symbol, msg: String): Unit =
- currentRun.reporting.deprecationWarning(fixPosition(pos), sym, msg)
+ def deprecationWarning(pos: Position, sym: Symbol, msg: String, since: String): Unit =
+ currentRun.reporting.deprecationWarning(fixPosition(pos), sym, msg, since)
def deprecationWarning(pos: Position, sym: Symbol): Unit =
currentRun.reporting.deprecationWarning(fixPosition(pos), sym) // TODO: allow this to escalate to an error, and implicit search will ignore deprecated implicits