Skip to content

Commit

Permalink
change deprecation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
arainko committed Dec 1, 2023
1 parent ecd3178 commit 3c8c459
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ducktape/src/main/scala/io/github/arainko/ducktape/Case.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ object Case {
@compileTimeOnly("Case.computed is only useable as a case configuration for transformations")
def computed[A, B, SourceTpe, DestTpe](selector: Selector ?=> A => SourceTpe, function: SourceTpe => DestTpe): Case[A, B] = ???

@deprecated
@deprecated(message = "Use the variant that accepts a path selector instead (Case.const(_.at[SourceSubtype], ...))", since = "0.2.0-M1")
@compileTimeOnly("'Case.const' needs to be erased from the AST with a macro.")
def const[SourceSubtype]: Case.Const[SourceSubtype] = ???

Expand All @@ -25,7 +25,7 @@ object Case {
}
}

@deprecated
@deprecated(message = "Use the variant that accepts a path selector instead (Case.computed(_.at[SourceSubtype], ...))", since = "0.2.0-M1")
@compileTimeOnly("'Case.computed' needs to be erased from the AST with a macro.")
def computed[SourceSubtype]: Case.Computed[SourceSubtype] = ???

Expand Down

0 comments on commit 3c8c459

Please sign in to comment.