Skip to content

Commit cd1c914

Browse files
committed
Fix rebase breakage
1 parent 75fdcbc commit cd1c914

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ object desugar {
10451045
def needsObject(stat: Tree) = stat match {
10461046
case _: ValDef | _: PatDef | _: DefDef => true
10471047
case stat: ModuleDef =>
1048-
stat.mods.is(Implicit) || opaqueNames.contains(stat.name.stripModuleClassSuffix.toTypeName)
1048+
stat.mods.is(ImplicitOrImplied) || opaqueNames.contains(stat.name.stripModuleClassSuffix.toTypeName)
10491049
case stat: TypeDef => !stat.isClassDef || stat.mods.is(Implicit)
10501050
case _ => false
10511051
}

tests/run/derive-multi.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ case class Triple[S, T, U] derives A, B
3030

3131
object Test1 {
3232
import Lst._
33+
import implied Lst._
3334
implicitly[A]
3435
}
3536

0 commit comments

Comments
 (0)