We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80075e0 commit ed9b664Copy full SHA for ed9b664
tests/pos/export-enum.scala
@@ -0,0 +1,15 @@
1
+object Signature {
2
+
3
+ enum MatchDegree {
4
+ case NoMatch, ParamMatch, FullMatch
5
+ }
6
+ export MatchDegree._
7
8
+ // Check that exported values have singeleton types
9
+ val x: MatchDegree.NoMatch.type = NoMatch
10
11
+ // Check that the following two methods are not exported.
12
+ // Exporting them would lead to a double definition.
13
+ def values: Array[MatchDegree] = ???
14
+ def valueOf($name: String): MatchDegree = ???
15
+}
0 commit comments