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 4d14e7e commit 3d3021cCopy full SHA for 3d3021c
tests/pos-special/fatal-warnings/i7219.scala
@@ -8,12 +8,6 @@ object Foo {
8
9
object Bar {
10
type Blue = Foo.Blue
11
-
12
- // Related Issue -- my expectation is that
13
- // `export Foo.Blue` should be equivalent to
14
- // `type Blue = Foo.Blue`, but it's not:
15
16
- // export Foo.Blue // Uncommenting this (and commenting `type Blue = ...`) results in compile error
17
}
18
19
import Foo._
tests/pos-special/fatal-warnings/i7219b.scala
@@ -0,0 +1,18 @@
1
+object Foo {
2
+ enum MyEnum {
3
+ case Red
4
+ case Blue(msg: String)
5
+ }
6
+ export MyEnum._
7
+}
+
+object Bar {
+ export Foo.Blue
+import Foo._
+def foo(a: MyEnum): Seq[Bar.Blue] = a match {
+ case Red => Seq.empty
+ case m: Foo.Blue => Seq(m)
0 commit comments