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

error during expansion of this match (this is a scalac bug). #11034

Closed
xuwei-k opened this issue Jul 23, 2018 · 1 comment
Closed

error during expansion of this match (this is a scalac bug). #11034

xuwei-k opened this issue Jul 23, 2018 · 1 comment
Labels

Comments

@xuwei-k
Copy link

xuwei-k commented Jul 23, 2018

2.12.6

Welcome to Scala 2.12.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_181).
Type in expressions for evaluation. Or try :help.

scala> object Foo { def unapplySeq(a: Int): Option[Iterable[Int]] = Some(Iterable(a)) }
defined object Foo

scala> val Foo(x) = 3
<console>:12: error: error during expansion of this match (this is a scalac bug).
The underlying error was: value length is not a member of Iterable[Int]
       val Foo(x) = 3
              ^

2.13.0-M4

Welcome to Scala 2.13.0-M4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_181).
Type in expressions for evaluation. Or try :help.

scala> object Foo { def unapplySeq(a: Int): Option[Iterable[Int]] = Some(Iterable(a)) }
defined object Foo

scala> val Foo(x) = 3
              ^
       error: error during expansion of this match (this is a scalac bug).
       The underlying error was: value length is not a member of Iterable[Int]
@dwijnand
Copy link
Member

Duplicate of #11102

@dwijnand dwijnand marked this as a duplicate of #11102 Jul 10, 2020
@SethTisue SethTisue removed this from the Backlog milestone Jul 17, 2020
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

3 participants