Skip to content

json.to fails with "named" arrays #12289

Closed
@dawkot

Description

@dawkot
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions