Skip to content

Instantly share code, notes, and snippets.

@zainab-ali
Created October 9, 2024 14:37
Show Gist options
  • Save zainab-ali/3b4ec5aefb0e081ce2b28936f56c55ad to your computer and use it in GitHub Desktop.
Save zainab-ali/3b4ec5aefb0e081ce2b28936f56c55ad to your computer and use it in GitHub Desktop.
Reproduction of bug in Repr derivation in snapshot4s
//> using scala "3.5.0"
//> using dep com.siriusxm::snapshot4s-core::0.1.6
import snapshot4s.Repr
class Address()
given Repr[Address] = ???
case class Person(name: String, address: Address)
val person = Person("Mao", new Address())
val source = summon[Repr[Person]].toSourceString(person)
println(source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment