aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/Patterns.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/Patterns.scala')
-rw-r--r--tests/pos/Patterns.scala3
1 files changed, 3 insertions, 0 deletions
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 {