Skip to content

Commit fc7e60e

Browse files
committed
1 parent d5ee92b commit fc7e60e

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
@@ -805,7 +805,7 @@ object desugar {
805805
* If `inlineable` is true, tag $anonfun with an @inline annotation.
806806
*/
807807
def makeClosure(params: List[ValDef], body: Tree, tpt: Tree = TypeTree(), inlineable: Boolean)(implicit ctx: Context) = {
808-
var mods = synthetic
808+
var mods = synthetic | Artifact
809809
if (inlineable) mods |= Inline
810810
Block(
811811
DefDef(nme.ANON_FUN, Nil, params :: Nil, tpt, body).withMods(mods),

0 commit comments

Comments
 (0)