Skip to content

Using generic static[int] as parameter in another static[...] parameter #4990

@flyx

Description

@flyx
type Foo*[I: static[int], A: static[array[I, int]]] = object
  curIndex: int

proc next*[I: static[int], A: static[array[I, int]]](f: Foo[I, A]): string =
  discard

This yields:

test1.nim(1, 43) Error: cannot generate code for: I

Is this a bug or is it impossible to get working?

Metadata

Metadata

Assignees

Labels

Static[T]staleStaled PR/issues; remove the label after fixing them

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions