aboutsummaryrefslogtreecommitdiff
path: root/interfaces/src
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-10-26 17:06:10 +0200
committerGuillaume Martres <smarter@ubuntu.com>2016-10-26 17:14:59 +0200
commit03b6a47f72da3229e80c7e67495cc73611aae0c9 (patch)
tree604b7370f2f81062f357a4116021031e00138503 /interfaces/src
parent557d448c626dd3fc93943523e6e28cf04288d848 (diff)
downloaddotty-03b6a47f72da3229e80c7e67495cc73611aae0c9.tar.gz
dotty-03b6a47f72da3229e80c7e67495cc73611aae0c9.tar.bz2
dotty-03b6a47f72da3229e80c7e67495cc73611aae0c9.zip
Avoid calling unsupported computeHash in some situations
Some types do not implement `computeHash`, instead they override `myHash` directly. This works fine as long as `myHash` is not equal to `HashUnknown` but this was not guaranteed before this commit, if `myHash` is equal to `HashUnknown` then `computeHash` is called by `CachedGroundType#hash` or `CachedProxyType#hash` causing an exception: https://gist.github.com/smarter/6b642db0495e995d8f3c26d614cf54d6 This commit fixes this by making sure we never compute a hash equal to `HashUnknown`, instead `HashUnknownAlt` should be used.
Diffstat (limited to 'interfaces/src')
0 files changed, 0 insertions, 0 deletions