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

hintSource wrong for stdinfile.nim stdin #41

Open
timotheecour opened this issue Feb 26, 2020 · 0 comments
Open

hintSource wrong for stdinfile.nim stdin #41

timotheecour opened this issue Feb 26, 2020 · 0 comments

Comments

@timotheecour
Copy link
Owner

  • hintSource
echo 'import math; round(float(25) * 2.54, 2)' | ./bin/nim c -r -
stdinfile.nim(1, 14) Warning: use strformat module instead; round is deprecated [Deprecated]

               ^
stdinfile.nim(1, 19) Error: expression 'round(63.5, 2)' is of type 'float' and has to be discarded

                    ^

source should point to stdin input (serialized as string)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant