aboutsummaryrefslogtreecommitdiff
path: root/tests/run/enum-Color.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/enum-Color.scala')
-rw-r--r--tests/run/enum-Color.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run/enum-Color.scala b/tests/run/enum-Color.scala
index 1a077bf8e..836e02c62 100644
--- a/tests/run/enum-Color.scala
+++ b/tests/run/enum-Color.scala
@@ -4,7 +4,7 @@ enum Color {
object Test {
def main(args: Array[String]) =
- for (color <- Color.values) {
+ for (color <- Color.enumValues) {
println(s"$color: ${color.enumTag}")
assert(Color.valueOf(color.enumTag) eq color)
}