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

..< is not happy with BiggestInt from intVal #3767

Closed
jxy opened this issue Jan 23, 2016 · 0 comments
Closed

..< is not happy with BiggestInt from intVal #3767

jxy opened this issue Jan 23, 2016 · 0 comments

Comments

@jxy
Copy link
Contributor

jxy commented Jan 23, 2016

The following code

import macros
macro t(n: expr): stmt =
  # for i in 0 .. <n.intVal:         # works
  for i in 0..<n.intVal:           # errors
    echo `i`

gives compiler error

macro_int.nim(4, 13) template/generic instantiation from here
lib/system.nim(3550, 5) Error: type mismatch: got (int literal(0), BiggestInt)
but expected one of: 
system...(b: T)
system...(a: T, b: T)
@Araq Araq closed this as completed in d3ce5f3 Mar 5, 2016
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

2 participants