Skip to content

Commit f5b07bb

Browse files
committed
revert change to transformDefDef. ignore lambdas for now
1 parent 8834e10 commit f5b07bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/InstrumentCoverage.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ class InstrumentCoverage extends MacroTransform with IdentityDenotTransformer:
330330
tree.rhs
331331
else if sym.isClassConstructor then
332332
instrumentSecondaryCtor(tree)
333-
else if !sym.isOneOf(Accessor) then
333+
else if !sym.isOneOf(Accessor | Artifact | Synthetic) then
334334
// If the body can be instrumented, do it (i.e. insert a "coverage call" at the beginning)
335335
// This is useful because methods can be stored and called later, or called by reflection,
336336
// and if the rhs is too simple to be instrumented (like `def f = this`),

0 commit comments

Comments
 (0)