summaryrefslogtreecommitdiff
path: root/test/files/pos/t9630
Commit message (Collapse)AuthorAgeFilesLines
* SI-9630 Fix spurious warning related to same-named case accessors [backport]Jason Zaugg2016-12-212-0/+17
Hash consing of trees within pattern match analysis was broken, and considered `x1.foo#1` to be the same tree as `x1.foo#2`, even though the two `foo`-s referred to different symbols. The hash consing was based on `Tree#correspondsStructure`, but the predicate in that function cannot veto correspondance, it can only supplement the default structural comparison. I've instead created a custom tree comparison method for use in the pattern matcher that handles the tree shapes that we use. (cherry picked from commit 79a52e6807d2797dee12bab1730765441a0e222d)