You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hit this bug in std/hashes: hash(ref|ptr|pointer) + other improvements #17731:
the innocent looking signature proc hash*(x: pointer | ref | ptr): Hash {.inline.} = caused a test to crash, tests/macros/tincremental.nim, because it somehow calls symBodyHash on hash, which results in this bug
The text was updated successfully, but these errors were encountered:
Example
Current Output
uncomment
discard symHash(fn4)
:Error: 'fn4' doesn't have a concrete type, due to unspecified generic parameters.
uncomment
discard symHash(fn3)
:Error: unhandled exception: index out of bounds, the container is empty [IndexDefect]
Expected Output
these should all work
typed
(a typeclass should be valid)proc fn(a: ref)
should be typed but notproc fn(a: seq)
(etc)Additional Information
the innocent looking signature
proc hash*(x: pointer | ref | ptr): Hash {.inline.} =
caused a test to crash,tests/macros/tincremental.nim
, because it somehow callssymBodyHash
onhash
, which results in this bugThe text was updated successfully, but these errors were encountered: