Skip to content

Commit 216ac17

Browse files
committed
Add test t11649
1 parent 497cdc2 commit 216ac17

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/patmat/t11649.scala

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
sealed trait Command { type Err }
2+
final case class Kick() extends Command { type Err = String }
3+
final case class Box() extends Command { type Err = Int }
4+
def handle[E](cmd: Command {type Err = E}): Either[E, Unit] = cmd match {
5+
case Kick() => ???
6+
case Box() => ???
7+
}

0 commit comments

Comments
 (0)