Skip to content

Commit b6b0a72

Browse files
committed
curious if it fixes everything
1 parent e494000 commit b6b0a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-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
@@ -336,7 +336,7 @@ object desugar {
336336
case Some(param) if param.mods.isOneOf(GivenOrImplicit) =>
337337
param.mods.flags & GivenOrImplicit
338338
case _ =>
339-
if Feature.sourceVersion.isAtLeast(`3.6`) then Given
339+
if Feature.sourceVersion.isAtLeast(`3.6`) && !Feature.sourceVersion.isScala2 then Given
340340
else Implicit
341341
val flags = if isPrimaryConstructor then iflag | LocalParamAccessor else iflag | Param
342342
mapParamss(paramss) {

0 commit comments

Comments
 (0)