aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/parsing/Parsers.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-09-19 23:07:06 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-10-10 13:25:34 +0200
commitbf8803d6d5b49e20e043564129c2109892842fa7 (patch)
tree3950bec472a60d5f0eadf986c4201d366b4a4d96 /src/dotty/tools/dotc/parsing/Parsers.scala
parent146add1421f4a92396fc2461ff362fee4527d7f8 (diff)
downloaddotty-bf8803d6d5b49e20e043564129c2109892842fa7.tar.gz
dotty-bf8803d6d5b49e20e043564129c2109892842fa7.tar.bz2
dotty-bf8803d6d5b49e20e043564129c2109892842fa7.zip
Add deprecation message on `with` type operator
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 dcd596298..620cc1273 100644
--- a/src/dotty/tools/dotc/parsing/Parsers.scala
+++ b/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -734,7 +734,7 @@ object Parsers {
def withTypeRest(t: Tree): Tree =
if (in.token == WITH) {
- deprecationWarning("`with' as a type operator has been deprecated; use `&' instead")
+ deprecationWarning(DeprecatedWithOperator())
in.nextToken()
AndTypeTree(t, withType())
}