diff options
author | Dmitry Petrashko <dark@d-d.me> | 2015-06-16 14:03:15 +0200 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2015-06-16 14:03:15 +0200 |
commit | 78fae1152a7b381af4639d3d66ed637eac3ca9d0 (patch) | |
tree | 5da61d62883c9635209a8e63dc0fcff02d598522 | |
parent | ae8a24638551913a60097a5a07c74f5e98e43af0 (diff) | |
parent | f9cb7aa3071bfb614efd23e2a14771b0bfd4ccf8 (diff) | |
download | dotty-78fae1152a7b381af4639d3d66ed637eac3ca9d0.tar.gz dotty-78fae1152a7b381af4639d3d66ed637eac3ca9d0.tar.bz2 dotty-78fae1152a7b381af4639d3d66ed637eac3ca9d0.zip |
Merge pull request #661 from dotty-staging/fix/#651-opassign
Fix #651 Generalize criterion for isOpAssign
-rw-r--r-- | src/dotty/tools/dotc/ast/TreeInfo.scala | 2 | ||||
-rw-r--r-- | tests/run/colltest1.check (renamed from tests/pending/run/colltest1.check) | 0 | ||||
-rw-r--r-- | tests/run/colltest1.scala (renamed from tests/pending/run/colltest1.scala) | 0 |
3 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/ast/TreeInfo.scala b/src/dotty/tools/dotc/ast/TreeInfo.scala index 2f6b6b914..6401c01c1 100644 --- a/src/dotty/tools/dotc/ast/TreeInfo.scala +++ b/src/dotty/tools/dotc/ast/TreeInfo.scala @@ -33,7 +33,7 @@ trait TreeInfo[T >: Untyped <: Type] { self: Trees.Instance[T] => } def isOpAssign(tree: Tree) = unsplice(tree) match { - case Apply(fn, _ :: Nil) => + case Apply(fn, _ :: _) => unsplice(fn) match { case Select(_, name) if name.isOpAssignmentName => true case _ => false diff --git a/tests/pending/run/colltest1.check b/tests/run/colltest1.check index 5ec6286d9..5ec6286d9 100644 --- a/tests/pending/run/colltest1.check +++ b/tests/run/colltest1.check diff --git a/tests/pending/run/colltest1.scala b/tests/run/colltest1.scala index 3f1fe5530..3f1fe5530 100644 --- a/tests/pending/run/colltest1.scala +++ b/tests/run/colltest1.scala |