Skip to content

Commit

Permalink
Fix NestedIdOps.value leaking to types of shapes F[G[A]] (#2423)
Browse files Browse the repository at this point in the history
* Made 'value'  private in NestedIdOps

This prevents 'value' from leaking into types with shape `F[G[A]]`.

* Fixed binary compatibility issue with changing 'value' to private.
  • Loading branch information
zarthross authored and kailuowang committed Sep 12, 2018
1 parent 98bf938 commit cd3f659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/syntax/nested.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trait NestedSyntax {
new NestedIdOps[F, G, A](value)
}

final class NestedIdOps[F[_], G[_], A](val value: F[G[A]]) extends AnyVal {
final class NestedIdOps[F[_], G[_], A](private[syntax] val value: F[G[A]]) extends AnyVal {
/**
* Wrap a value in `Nested`.
*
Expand Down

0 comments on commit cd3f659

Please sign in to comment.