Skip to content

Commit

Permalink
Apply implicit conversion from derived Conversion instance defined as…
Browse files Browse the repository at this point in the history
… implicit rather than given
  • Loading branch information
prolativ committed Oct 16, 2024
1 parent 78cff1b commit 80a2a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Implicits.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ trait Implicits:
case _ => info.derivesFrom(defn.ConversionClass)
def tryConversion(using Context) = {
val untpdConv =
if ref.symbol.is(Given) && producesConversion(ref.symbol.info) then
if ref.symbol.isOneOf(GivenOrImplicit) && producesConversion(ref.symbol.info) then
untpd.Select(
untpd.TypedSplice(
adapt(generated,
Expand Down

0 comments on commit 80a2a3e

Please sign in to comment.