Skip to content

Commit f713efa

Browse files
Merge pull request #13597 from dotty-staging/fix-10886
Fix #10886: Add regression test
2 parents 697c54d + 0698ca5 commit f713efa

File tree

1 file changed

+10
-0
lines changed
  • compiler/test-resources/repl

1 file changed

+10
-0
lines changed

compiler/test-resources/repl/10886

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
scala> type Channel = "A" | "B"
2+
// defined alias type Channel = "A" | "B"
3+
4+
scala> type SelChannel[C <: Tuple] = C match { case x *: xs => x | SelChannel[xs] case _ => Nothing }
5+
6+
scala> lazy val a: SelChannel[("A", "B", "C")] = a
7+
lazy val a: "A" | ("B" | ("C" | Nothing))
8+
9+
scala>:type a
10+
("A" : String) | (("B" : String) | (("C" : String) | Nothing))

0 commit comments

Comments
 (0)