Skip to content

Commit d778b12

Browse files
committed
1 parent 0155804 commit d778b12

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
@@ -717,7 +717,7 @@ object desugar {
717717
* If `inlineable` is true, tag $anonfun with an @inline annotation.
718718
*/
719719
def makeClosure(params: List[ValDef], body: Tree, tpt: Tree = TypeTree(), inlineable: Boolean)(implicit ctx: Context) = {
720-
var mods = synthetic
720+
var mods = synthetic | Artifact
721721
if (inlineable) mods |= Inline
722722
Block(
723723
DefDef(nme.ANON_FUN, Nil, params :: Nil, tpt, body).withMods(mods),

0 commit comments

Comments
 (0)