summaryrefslogtreecommitdiff
path: root/test/files/pos/t9630.flags
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2016-01-27 19:01:25 +1000
committerAdriaan Moors <adriaan@lightbend.com>2016-12-21 16:53:28 -0800
commitda986839d17dbbd41877df809e3efed8d63deb4e (patch)
treee198a85516c67b8381ac1f45e64e4cb26daa6bb7 /test/files/pos/t9630.flags
parent80ce23103ca72762ced87e5cb97e8ae34b434edd (diff)
downloadscala-da986839d17dbbd41877df809e3efed8d63deb4e.tar.gz
scala-da986839d17dbbd41877df809e3efed8d63deb4e.tar.bz2
scala-da986839d17dbbd41877df809e3efed8d63deb4e.zip
SI-9630 Fix spurious warning related to same-named case accessors [backport]
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)
Diffstat (limited to 'test/files/pos/t9630.flags')
-rw-r--r--test/files/pos/t9630.flags1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/files/pos/t9630.flags b/test/files/pos/t9630.flags
new file mode 100644
index 0000000000..85d8eb2ba2
--- /dev/null
+++ b/test/files/pos/t9630.flags
@@ -0,0 +1 @@
+-Xfatal-warnings