Skip to content

Commit 69eb939

Browse files
committed
Fixx #11835: respect inline flag for default values of inline parameters
1 parent 5f88058 commit 69eb939

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
@@ -298,7 +298,7 @@ object desugar {
298298
rhs = vparam.rhs
299299
)
300300
.withMods(Modifiers(
301-
meth.mods.flags & (AccessFlags | Synthetic),
301+
meth.mods.flags & (AccessFlags | Synthetic) | (vparam.mods.flags & Inline),
302302
meth.mods.privateWithin))
303303
val rest = defaultGetters(vparams :: paramss1, n + 1)
304304
if vparam.rhs.isEmpty then rest else defaultGetter :: rest

0 commit comments

Comments
 (0)