See the Nin manual, section [https://nim-lang.org/docs/manual.html#multiminusmethods](https://nim-lang.org/docs/manual.html#multiminusmethods)
Note: Starting from Nim 0.20, to use multi-methods one must explicitly pass --multimethods:on when compiling.