We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96895cb commit bbb717cCopy full SHA for bbb717c
tests/pos/gadt-strip-refinement.scala
@@ -0,0 +1,6 @@
1
+trait Tag[T] { type X }
2
+class IntTag extends Tag[Int]
3
+
4
+def foo[T](x: Tag[T]): T = x match {
5
+ case _: IntTag { type X = String } => 0
6
+}
0 commit comments