Skip to content

Commit 06d278b

Browse files
committed
Test for patmat action on a @ Bind(_, Typed(_: Unapply, _)
1 parent 49cfd9f commit 06d278b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/pos/Patterns.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import dotty.tools.dotc.ast.Trees._
12
import dotty.tools.dotc.core.Types._
23

34
object Patterns {
@@ -13,6 +14,8 @@ object Patterns {
1314
d match {
1415
case WildcardType(bounds: TypeBounds) =>
1516
bounds.variance
17+
case a @ Assign(Ident(id), rhs) => id
18+
case a: Object => a
1619
}
1720

1821
('1', "1") match {

0 commit comments

Comments
 (0)