Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type mismatch with generic unsigned integer matching #24251

Closed
arnetheduck opened this issue Oct 7, 2024 · 2 comments
Closed

type mismatch with generic unsigned integer matching #24251

arnetheduck opened this issue Oct 7, 2024 · 2 comments

Comments

@arnetheduck
Copy link
Contributor

arnetheduck commented Oct 7, 2024

Description

proc f2(v: SomeUnsignedInt): int =
  4
proc f(v: SomeUnsignedInt): int =
  f2(v)

echo f(0)

Nim Version

2.0.8

Current Output

testit.nim(4, 5) Error: type mismatch
Expression: f2(v)
  [1] v: int

Expected one of (first mismatch at [position]):
[1] proc f2(v: SomeUnsignedInt): int

Expected Output

No response

Known Workarounds

No response

Additional Information

No response

@metagn
Copy link
Collaborator

metagn commented Oct 7, 2024

Same issue as #4858, coincidentally I just opened #24250 for it

@arnetheduck
Copy link
Contributor Author

thanks, closing as duplicate then.

@arnetheduck arnetheduck closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants