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 de18af4 commit 05b3f73Copy full SHA for 05b3f73
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -339,7 +339,7 @@ object desugar {
339
case Some(param) if param.mods.isOneOf(GivenOrImplicit) =>
340
param.mods.flags & GivenOrImplicit
341
case _ =>
342
- if Feature.sourceVersion.isAtLeast(`3.6`) then Given
+ if Feature.sourceVersion.isAtLeast(`3.6`) && !Feature.sourceVersion.isScala2 then Given
343
else Implicit
344
val flags = if isPrimaryConstructor then iflag | LocalParamAccessor else iflag | Param
345
mapParamss(paramss) {
0 commit comments