Skip to content

Commit bbb717c

Browse files
committed
Add testcase for stripping refinements in GADT
1 parent 96895cb commit bbb717c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/pos/gadt-strip-refinement.scala

+6
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)