diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-09-19 23:07:06 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-10-10 13:25:34 +0200 |
commit | bf8803d6d5b49e20e043564129c2109892842fa7 (patch) | |
tree | 3950bec472a60d5f0eadf986c4201d366b4a4d96 /src/dotty/tools/dotc/parsing/Parsers.scala | |
parent | 146add1421f4a92396fc2461ff362fee4527d7f8 (diff) | |
download | dotty-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.scala | 2 |
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()) } |