fixes #5135
This commit is contained in:
parent
c166394024
commit
06a8d37f9a
3 changed files with 14 additions and 0 deletions
|
|
@ -281,6 +281,11 @@ proc hashNonProc*(s: PSym): SigHash =
|
|||
c &= it.name.s
|
||||
c &= "."
|
||||
it = it.owner
|
||||
# for bug #5135 we also take the position into account, but only
|
||||
# for parameters, because who knows what else position dependency
|
||||
# might cause:
|
||||
if s.kind == skParam:
|
||||
c &= s.position
|
||||
md5Final c, result.Md5Digest
|
||||
|
||||
proc hashOwner*(s: PSym): SigHash =
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
|
||||
# bug #5135
|
||||
proc fail*[E](e: E): void =
|
||||
raise newException(Exception, e)
|
||||
|
||||
# bug #4875
|
||||
type Bar = object
|
||||
mFoo: int
|
||||
|
|
|
|||
5
tests/template/tsighash_regression.nim
Normal file
5
tests/template/tsighash_regression.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
import tconfusinglocal
|
||||
|
||||
|
||||
fail "foo"
|
||||
Loading…
Add table
Add a link
Reference in a new issue