Skip to content

Commit

Permalink
Deprecate old syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Oct 6, 2020
1 parent ecdf9bf commit 099074c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/src/dotty/tools/dotc/parsing/Parsers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3117,6 +3117,7 @@ object Parsers {
case GIVEN =>
val start = in.skipToken()
if in.token == USCORE then
deprecationWarning(em"`given _` is deprecated in imports; replace with just `given`", start)
in.nextToken()
ImportSelector(givenSelectorId(start)) // Let the selector span all of `given _`; needed for -Ytest-pickler
else if canStartTypeTokens.contains(in.token) then
Expand Down

0 comments on commit 099074c

Please sign in to comment.