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