diff options
author | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-02-06 15:20:37 +0100 |
---|---|---|
committer | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-02-06 15:20:37 +0100 |
commit | 8994da9da0b57d24d632f4eab2cd8c17c530f279 (patch) | |
tree | 806eb0fe27cb2974ade04443eb85397f713164b2 /test/files/run/t2418.scala | |
parent | fc15cfc2399661f1de7d91b2ca0f5d12f32bc708 (diff) | |
download | scala-8994da9da0b57d24d632f4eab2cd8c17c530f279.tar.gz scala-8994da9da0b57d24d632f4eab2cd8c17c530f279.tar.bz2 scala-8994da9da0b57d24d632f4eab2cd8c17c530f279.zip |
Fix inconsistent binding in patterns with 10+ holes
Previously a map that was storing bindings of fresh hole variables with
their contents (tree & cardinality) used to be a SortedMap which had
issues with inconsistent key ordering:
"$fresh$prefix$1" < "$fresh$prefix$2"
...
"$fresh$prefix$8" < "$fresh$prefix$9"
"$fresh$prefix$9" > "$fresh$prefix$10"
This issue is solved by using a LinkedHashMap instead (keys are inserted
in the proper order.)
Diffstat (limited to 'test/files/run/t2418.scala')
0 files changed, 0 insertions, 0 deletions