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