This commit is contained in:
Andreas Rumpf
2016-12-21 11:09:47 +01:00
parent c166394024
commit 06a8d37f9a
3 changed files with 14 additions and 0 deletions

View File

@@ -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 =

View File

@@ -1,4 +1,8 @@
# bug #5135
proc fail*[E](e: E): void =
raise newException(Exception, e)
# bug #4875
type Bar = object
mFoo: int

View File

@@ -0,0 +1,5 @@
import tconfusinglocal
fail "foo"