Skip to content

static[T] issue with default arguments #6928

@GULPF

Description

@GULPF
proc bar(x: static[int]) =
  discard

proc foo(x: static[int] = 1) =
  # Error: type mismatch: got (int)
  #    but expected one of: 
  #    proc bar(x: static[int])
  bar(x)

foo()

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions