Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
Very old, known bug that has been reported multiple times by now. The generic prepass doesn't understand the implicit items/pairs iterator invokations and maybe these were a bad idea.
Description
The following code doesn't compile with
nim r main.nim
:main.nim:
piecevalue.nim:
bitboard.nim:
Nim Version
Nim Compiler Version 2.1.9 [Linux: amd64] Compiled at 2024-07-13 Copyright (c) 2006-2024 by Andreas Rumpf
git hash: f6aeca5765bb48abc6efbe35e4ea6accf127d072 active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
When changing in main.nim the code to:
it works.