From 06d278bcbf6237c884bde0691536d28fbdb2e593 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Tue, 14 Oct 2014 13:18:06 +0200 Subject: Test for patmat action on a @ Bind(_, Typed(_: Unapply, _) --- tests/pos/Patterns.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/pos/Patterns.scala') diff --git a/tests/pos/Patterns.scala b/tests/pos/Patterns.scala index 228345b98..54c4d8ab2 100644 --- a/tests/pos/Patterns.scala +++ b/tests/pos/Patterns.scala @@ -1,3 +1,4 @@ +import dotty.tools.dotc.ast.Trees._ import dotty.tools.dotc.core.Types._ object Patterns { @@ -13,6 +14,8 @@ object Patterns { d match { case WildcardType(bounds: TypeBounds) => bounds.variance + case a @ Assign(Ident(id), rhs) => id + case a: Object => a } ('1', "1") match { -- cgit v1.2.3