Skip to content

internal error: '=destroy' operator not found for type NimNode returning NimNode #25120

@tersec

Description

@tersec

Nim Version

Nim Compiler Version 2.2.4 [Linux: amd64]
Compiled at 2025-08-25
Copyright (c) 2006-2025 by Andreas Rumpf

git hash: f7145dd26efeeeb6eeae6fff649db244d81b212d
active boot switches: -d:release
Nim Compiler Version 2.2.5 [Linux: amd64]
Compiled at 2025-08-25
Copyright (c) 2006-2025 by Andreas Rumpf

git hash: c339651ae1d6af6c84f5489f6fe1fdea44ba1fa1
active boot switches: -d:release
Nim Compiler Version 2.3.1 [Linux: amd64]
Compiled at 2025-08-25
Copyright (c) 2006-2025 by Andreas Rumpf

git hash: b527db9ddd33fd16a8afd8467344fec81a54c84d
active boot switches: -d:release

Description

proc k(): NimNode = discard
discard k()

Current Output

/tmp/c.nim(2, 10) Error: internal error: '=destroy' operator not found for type NimNode

Expected Output

No Nim internal error

Known Workarounds

No response

Additional Information

No response

Metadata

Metadata

Assignees

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