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 when running tests/tcstring.nim #68

Open
xrfez opened this issue May 3, 2023 · 0 comments
Open

type mismatch when running tests/tcstring.nim #68

xrfez opened this issue May 3, 2023 · 0 comments

Comments

@xrfez
Copy link

xrfez commented May 3, 2023

Should this line be throwing a type mismatch?

doAssert my_func("Hello".cstring) == 5

Should I be using something like this?

doAssert my_func(cast[ptr Tchar]("hello".cstring)) == 5
Nim Compiler Version 1.6.12 [Windows: amd64]
Compiled at 2023-03-10
Copyright (c) 2006-2023 by Andreas Rumpf

active boot switches: -d:release
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

1 participant