Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wire in pattern matching #170

Open
mbore opened this issue Jul 23, 2021 · 0 comments
Open

Wire in pattern matching #170

mbore opened this issue Jul 23, 2021 · 0 comments
Labels

Comments

@mbore
Copy link
Contributor

mbore commented Jul 23, 2021

e.g. ( tests/src/test/resources/test-cases/functionApplication.scala2.success)

case class A()
case class B(a: A)
case class C(a: A, b: B)

lazy val ab: Option[(A,B)] = Some(A(),B(A()))


def buildDeconstructingCase: Option[C] = {
  ab.map { case (a,b) => wire[C] }
}
@mbore mbore added the Scala3 label Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant