Skip to content

Commit

Permalink
Add a Developer-Comment regarding an unused parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
diesalbla authored and LukaJCB committed Dec 22, 2019
1 parent b0c8121 commit 424f10a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/scala/cats/data/Validated.scala
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,8 @@ object Validated extends ValidatedInstances with ValidatedFunctions with Validat
* Uses the [[http://typelevel.org/cats/guidelines.html#partially-applied-type-params Partially Applied Type Params technique]] for ergonomics.
*/
final private[data] class CatchOnlyPartiallyApplied[T](private val dummy: Boolean = true) extends AnyVal {
/* Note: the NT parameter is not referenced at runtime, but serves a compile-time role.
* See https://github.com/typelevel/cats/pull/1867/files#r138381991 for details. */
def apply[A](f: => A)(implicit T: ClassTag[T], NT: NotNull[T]): Validated[T, A] =
try {
valid(f)
Expand Down

0 comments on commit 424f10a

Please sign in to comment.