We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 490d4bf + a4eb9bd commit b7ee4aaCopy full SHA for b7ee4aa
core/src/main/scala/magnolia1/magnolia.scala
@@ -903,8 +903,8 @@ private[magnolia1] object CompileTimeState {
903
val depth = c.enclosingMacros.count(m => workSet(m.macroApplication.symbol))
904
try fn(stack.asInstanceOf[Stack[c.type]], depth)
905
finally if (depth <= 1) {
906
- stack.clear()
907
- workSet.clear()
+ threadLocalStack.remove()
+ threadLocalWorkSet.remove()
908
}
909
910
0 commit comments