Skip to content

.compileTime proc with static argument is not folded #22021

@metagn

Description

@metagn

Description

block:
  proc foo(x: int): int {.compileTime.} = x + 1
  echo foo(123) # works
block:
  proc foo(x: static int): int {.compileTime.} = x + 1
  echo foo(123) # fails

Nim Version

b97d603

Current Output

(6, 8) Error: request to generate code for .compileTime proc: foo

Expected Output

124

Possible Solution

No response

Additional Information

No response

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