Skip to content
Permalink
Browse files

Fix StackOverflow of Codec[SelfRecursiveWithOption]

Found in the Scala Community Build and likely caused by a
seemingly innocuous change in ScalaCheck.
  • Loading branch information...
ashawley authored and travisbrown committed Jul 10, 2019
1 parent 6ba92ca commit eeae56d3a4f612069a401020d226af8759b0a91d
@@ -151,7 +151,8 @@ package jsoncodecmacrossuiteaux {
else Gen.const(SelfRecursiveWithOption(None))

implicit val arbitrarySelfRecursiveWithOption: Arbitrary[SelfRecursiveWithOption] =
Arbitrary(atDepth(0))
Arbitrary(Gen.sized(atDepth(_)))

}
}

0 comments on commit eeae56d

Please sign in to comment.
You can’t perform that action at this time.