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

json.to fails with "named" arrays #12289

Closed
dawkot opened this issue Sep 28, 2019 · 0 comments
Closed

json.to fails with "named" arrays #12289

dawkot opened this issue Sep 28, 2019 · 0 comments

Comments

@dawkot
Copy link

dawkot commented Sep 28, 2019

import json

type Vec = array[2, int]

discard "".parseJson.to Vec

/usercode/in.nim(5, 21) template/generic instantiation of to from here
/usercode/in.nim(3, 18) Error: 'range' expects one type parameter

krux02 added a commit to krux02/Nim that referenced this issue Oct 9, 2019
@Araq Araq closed this as completed in 21cbfd7 Oct 17, 2019
alehander92 pushed a commit to alehander92/Nim that referenced this issue Dec 2, 2019
* closes nim-lang#12316
* make tjsonmacro work at js target
* closes nim-lang#12289
* closes nim-lang#11988
* also fixed gdb related stuff
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