mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
fixes #5135
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user