Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
case class A(n: Int)
val a1 = A(1)
println(a1.n)
val a2 = A(2)
println(a2.n)
a1 match {
case A(n) => println(n)
}
println(a1 == a2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment