File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform
tests/neg-custom-args/fatal-warnings Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ object CheckUnused:
478478 if ctx.settings.WunusedHas .implicits then
479479 implicitParamInScope
480480 .filterNot(d => d.symbol.usedDefContains)
481- .filterNot(d => containsSyntheticSuffix(d.symbol))
481+ .filterNot(d => containsSyntheticSuffix(d.symbol) && ! d.rawMods.is( Given ) )
482482 .map(d => d.namePos -> WarnTypes .ImplicitParams ).toList
483483 else
484484 Nil
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ val default_int = 1
55
66def f1 (a : Int ) = a // OK
77def f2 (a : Int ) = 1 // OK
8- def f3 (a : Int )(using Int ) = a // OK
8+ def f3 (a : Int )(using Int ) = a // error
99def f4 (a : Int )(using Int ) = default_int // error
1010def f6 (a : Int )(using Int ) = summon[Int ] // OK
1111def f7 (a : Int )(using Int ) = summon[Int ] + a // OK
You can’t perform that action at this time.
0 commit comments