aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/parsing/Parsers.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-05-13 18:49:22 +0200
committerMartin Odersky <odersky@gmail.com>2013-05-13 18:49:22 +0200
commit19cce9dca34bf951787805069dc57bf177942758 (patch)
tree9c35f922b12ea2f996daa5a64b2025f70fb2c110 /src/dotty/tools/dotc/parsing/Parsers.scala
parent805d116bd6d504b36db06568d0a160e41cfabfb7 (diff)
downloaddotty-19cce9dca34bf951787805069dc57bf177942758.tar.gz
dotty-19cce9dca34bf951787805069dc57bf177942758.tar.bz2
dotty-19cce9dca34bf951787805069dc57bf177942758.zip
Added conditional warning facility
…for deprecation, feature, unchecked.
Diffstat (limited to 'src/dotty/tools/dotc/parsing/Parsers.scala')
-rw-r--r--src/dotty/tools/dotc/parsing/Parsers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/parsing/Parsers.scala b/src/dotty/tools/dotc/parsing/Parsers.scala
index 89ccf4743..0f2ba8531 100644
--- a/src/dotty/tools/dotc/parsing/Parsers.scala
+++ b/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -178,7 +178,7 @@ object Parsers {
ctx.warning(msg, source atPos Position(offset))
def deprecationWarning(msg: String, offset: Int = in.offset) =
- ctx.deprecationWarning(msg, source atPos Position(offset))
+ ctx.deprecation.warning(msg, source atPos Position(offset))
/** The offset where the last syntax error was reported, or if a skip to a
* safepoint occurred afterwards, the offset of the safe point.