Skip to content

Error: obsolete usage of 'defined', use 'declared' instead #7997

@yglukhov

Description

@yglukhov
import locks # Compiles without this line
template ifDebug(e: untyped): untyped =
  when not defined(release): e
ifDebug echo "hi"
test.nim(6, 9) template/generic instantiation from here
test.nim(4, 19) Error: obsolete usage of 'defined', use 'declared' instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions