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

diverging implicit expansion #8797

Open
scabug opened this issue Aug 13, 2014 · 1 comment
Open

diverging implicit expansion #8797

scabug opened this issue Aug 13, 2014 · 1 comment

Comments

@scabug
Copy link

scabug commented Aug 13, 2014

In 2.10 this worked:

object Foo extends Enumeration {
val something = Value
}

val x = for {
a <- Foo.values
b <- Foo.values
} yield (a,b)

But in 2.11 it generates an error. The workaround is:

object Foo extends Enumeration {
val something = Value
}

val x = for {
a <- Foo.values.toSeq
b <- Foo.values
} yield (a,b)

@scabug
Copy link
Author

scabug commented Aug 13, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8797?orig=1
Reporter: Bruce Eckel (bruceeckel)
See #5534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant