diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-02-06 18:08:16 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-06 18:08:16 +0100 |
commit | f7870863c28d163d1016418783a1169fbd6022d0 (patch) | |
tree | 93bd85ea37a862dacf57e52cfb1dfdea4d05af0b /test/files/scalacheck | |
parent | e1402ed460f1adb73b8f0f6bc97ea3b19b72c4be (diff) | |
parent | 8994da9da0b57d24d632f4eab2cd8c17c530f279 (diff) | |
download | scala-f7870863c28d163d1016418783a1169fbd6022d0.tar.gz scala-f7870863c28d163d1016418783a1169fbd6022d0.tar.bz2 scala-f7870863c28d163d1016418783a1169fbd6022d0.zip |
Merge pull request #3475 from densh/topic/holemap-ordering
Fix inconsistent binding in patterns with 10+ holes
Diffstat (limited to 'test/files/scalacheck')
-rw-r--r-- | test/files/scalacheck/quasiquotes/TermConstructionProps.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/scalacheck/quasiquotes/TermConstructionProps.scala b/test/files/scalacheck/quasiquotes/TermConstructionProps.scala index 54187d68c2..145e51ab68 100644 --- a/test/files/scalacheck/quasiquotes/TermConstructionProps.scala +++ b/test/files/scalacheck/quasiquotes/TermConstructionProps.scala @@ -291,4 +291,9 @@ object TermConstructionProps extends QuasiquoteProperties("term construction") { val stats2 = List.empty[Tree] assert(q"{ ..$stats2 }" ≈ q"") } + + property("consistent variable order") = test { + val q"$a = $b = $c = $d = $e = $f = $g = $h = $k = $l" = q"a = b = c = d = e = f = g = h = k = l" + assert(a ≈ q"a" && b ≈ q"b" && c ≈ q"c" && d ≈ q"d" && e ≈ q"e" && g ≈ q"g" && h ≈ q"h" && k ≈ q"k" && l ≈ q"l") + } } |