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 committed Dec 21, 2019
1 parent b0c8121 commit 4334003
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion tests/src/test/scala/cats/tests/NonEmptyMapSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class NonEmptyMapSuite extends CatsSuite {
}

test("NonEmptyMap#updateWith should not act when key is missing") {
val single = NonEmptyMap[String, Int](("here", 1), SortedMap())
val single = NonEmptyMap[String, Int](("here", 1), SortedMap())(null)
single.lookup("notHere") should ===(single.updateWith("notHere")(_ => 1).lookup("notHere"))
}

Expand Down

0 comments on commit 4334003

Please sign in to comment.