diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-10-14 13:18:06 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-10-14 13:18:06 +0200 |
commit | 06d278bcbf6237c884bde0691536d28fbdb2e593 (patch) | |
tree | f0c883953debe06e088c70d4c2de524f2856dffb /tests/pos/Patterns.scala | |
parent | 49cfd9fe87c86cd7fff0952fe379eb1e7acca611 (diff) | |
download | dotty-06d278bcbf6237c884bde0691536d28fbdb2e593.tar.gz dotty-06d278bcbf6237c884bde0691536d28fbdb2e593.tar.bz2 dotty-06d278bcbf6237c884bde0691536d28fbdb2e593.zip |
Test for patmat action on a @ Bind(_, Typed(_: Unapply, _)
Diffstat (limited to 'tests/pos/Patterns.scala')
-rw-r--r-- | tests/pos/Patterns.scala | 3 |
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 { |