Skip to content

Commit 4dbc6e8

Browse files
committed
add back EnumValues in bootstrapped lib
1 parent 28bfa19 commit 4dbc6e8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package scala.runtime
2+
3+
class EnumValues[E <: Enum] {
4+
5+
def register(v: E) =
6+
throw new UnsupportedOperationException("EnumValues should not be used")
7+
8+
def fromInt: Map[Int, E] =
9+
throw new UnsupportedOperationException("EnumValues should not be used")
10+
11+
def fromName: Map[String, E] =
12+
throw new UnsupportedOperationException("EnumValues should not be used")
13+
14+
def values: Iterable[E] =
15+
throw new UnsupportedOperationException("EnumValues should not be used")
16+
}

0 commit comments

Comments
 (0)