Skip to content

Commit

Permalink
fix: instantiate new instance of phase for every plugin run in scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuwalow committed Apr 27, 2024
1 parent 4e53aa7 commit 39f7d95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import dotty.tools.dotc.core.Types.TypeRef
import dotty.tools.dotc.ast.tpd.{TreeOps, Literal}
import dotty.tools.dotc.ast.untpd.Mod.Given.apply

object TaggingPhase extends PluginPhase {
final class TaggingPhase extends PluginPhase {

val phaseName = "zio-profiling-tagging"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ class TaggingPlugin extends StandardPlugin {
val name: String = "zio-profiling-tagging"
override val description: String = "automatically tag zio effects"

def init(options: List[String]): List[PluginPhase] = List(TaggingPhase)
def init(options: List[String]): List[PluginPhase] = List(new TaggingPhase())
}

0 comments on commit 39f7d95

Please sign in to comment.