Skip to content

bits not exported, leading to failure with generic proc #72

@andreaferretti

Description

@andreaferretti

If I try to define the simple proc

import stint

proc id[N: static int](x: typedesc[StInt[N]]): StInt[N] = 1.stint(N)

let x = id(StInt[8])

I get the error

example.nim(5, 11) template/generic instantiation of `id` from here
../../.nimble/pkgs/stint-0.0.1/stint/private/datatypes.nim(167, 20) Error: undeclared identifier: 'bits'

(I am trying to make stint interop with emmy)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions