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

cannot convert int128 to type int64 #12170

Closed
pgkos opened this issue Sep 11, 2019 · 0 comments

Comments

@pgkos
Copy link
Contributor

commented Sep 11, 2019

The following example fails to compile with a weird error:

Example

proc foo(t: typedesc[int64]) = discard

foo(int)

Current Output

bug.nim(3, 5) Error: cannot convert 170141183460469231731687303715884105727 to type int64

Expected Output

Either: first type mismatch at position: 1
or successful compilation.

Additional information

$ nim -v
Nim Compiler Version 0.20.99 [Linux: amd64]
Compiled at 2019-09-08
Copyright (c) 2006-2019 by Andreas Rumpf

active boot switches: -d:release

The bug affects the yaml package, the following example fails to compile:

import yaml

var a = 0
echo dump(a)
Araq added a commit that referenced this issue Sep 11, 2019

@Araq Araq closed this in 8c81cdd Sep 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.