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
Kind of related to #4858 etc, Nim accepts that 1 matches range[1..8] so it passes it directly as a static type, but its actual type remains as int. Passing range[1..8](1) instead works.
metagn
added a commit
to metagn/Nim
that referenced
this issue
Sep 28, 2024
Description
When I define a generic type and a proc with a static range generic parameter and call it,
it always cause type mismatch compile error.
Nim Version
Nim Compiler Version 2.1.1 [Linux: amd64]
Compiled at 2024-02-22
Copyright (c) 2006-2024 by Andreas Rumpf
git hash: 59c6500
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: