Created
October 9, 2024 14:37
-
-
Save zainab-ali/3b4ec5aefb0e081ce2b28936f56c55ad to your computer and use it in GitHub Desktop.
Reproduction of bug in Repr derivation in snapshot4s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> 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