Skip to content

Commit 48e515f

Browse files
committed
Also don't copy Lazy to Setter.
1 parent 5e01978 commit 48e515f

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
@@ -158,7 +158,7 @@ object desugar {
158158
vparamss = (setterParam :: Nil) :: Nil,
159159
tpt = TypeTree(defn.UnitType),
160160
rhs = setterRhs
161-
).withMods((mods | Accessor) &~ (CaseAccessor | Implicit | Given))
161+
).withMods((mods | Accessor) &~ (CaseAccessor | Implicit | Given | Lazy))
162162
Thicket(vdef, setter)
163163
}
164164
else vdef

0 commit comments

Comments
 (0)