From cf1b1f0a1bdf9a3e0cda07cee36179c82001d2cc Mon Sep 17 00:00:00 2001 From: "Diego E. Alonso-Blas" Date: Sat, 21 Dec 2019 23:18:54 +0100 Subject: [PATCH] Add a Developer-Comment regarding an unused parameter. --- core/src/main/scala/cats/data/Validated.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/scala/cats/data/Validated.scala b/core/src/main/scala/cats/data/Validated.scala index b62582efe4..20a0630929 100644 --- a/core/src/main/scala/cats/data/Validated.scala +++ b/core/src/main/scala/cats/data/Validated.scala @@ -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)