Open Nycto opened 1 month ago
Compiling with --experimental:callOperator
instead works as intended
Ah, interesting. I suppose this bug report is really about error messaging, then. It would be helpful if the error expressed that adding the correct flags would fix the problem.
Description
The
callOperator
fails to bind when the usage and declaration are spread across two different files. For example:and
However, the same code does work when the import is removed:
Nim Version
Nim Compiler Version 2.0.8 [Linux: amd64] Compiled at 2024-07-03 Copyright (c) 2006-2023 by Andreas Rumpf
git hash: 5935c3bfa9fec6505394867b23510eb5cbab3dbf active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response