We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1c2e46 commit f00881fCopy full SHA for f00881f
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -3117,6 +3117,7 @@ object Parsers {
3117
case GIVEN =>
3118
val start = in.skipToken()
3119
if in.token == USCORE then
3120
+ deprecationWarning(em"`given _` is deprecated in imports; replace with just `given`", start)
3121
in.nextToken()
3122
ImportSelector(givenSelectorId(start)) // Let the selector span all of `given _`; needed for -Ytest-pickler
3123
else if canStartTypeTokens.contains(in.token) then
0 commit comments