We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What steps will reproduce the problem (please be specific and use wikiformatting)?
scala> object MyEnum extends Enumeration {val V1, V2, V3=Value} defined module MyEnum scala> MyEnum.values.size res0: Int = 3 scala> MyEnum.values.mkString res1: String = V1V2V3 scala> MyEnum.values.size res2: Int = 4 scala> MyEnum.values.mkString(" ") res3: String = V1 V2 V3 Value
What is the expected behavior?
MyEnum.values.size should not change.
What do you see instead?
The first time MyEnum.values is iterated over, a new value is added to the enumeration, with name "Value."
What versions of the following are you using?
Scala: 2.8.1 (problem was not present in 2.8.0). Reproduced in scala-2.8.1.r23473-b20101109023137
Java: build 1.6.0_20-b02-279-10M3065
Operating system: Mac OS X 10.6.4
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-4045?orig=1 Reporter: Alec Wysoker (alecw) See #5211
Sorry, something went wrong.
@hubertp said: Duplicate of #3687 => closing.
No branches or pull requests
What steps will reproduce the problem (please be specific and use wikiformatting)?
What is the expected behavior?
MyEnum.values.size should not change.
What do you see instead?
The first time MyEnum.values is iterated over, a new value is added to the enumeration, with name "Value."
What versions of the following are you using?
Scala: 2.8.1 (problem was not present in 2.8.0). Reproduced in scala-2.8.1.r23473-b20101109023137
Java: build 1.6.0_20-b02-279-10M3065
Operating system: Mac OS X 10.6.4
The text was updated successfully, but these errors were encountered: