fixes #24666; Compilation error when formatting a complex number (#24667)

fixes #24666

ref https://github.com/nim-lang/Nim/pull/22924

(cherry picked from commit 485b414fce)
This commit is contained in:
ringabout
2025-02-06 02:37:13 +08:00
committed by narimiran
parent 46e1322d29
commit 6c34f62785
2 changed files with 6 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ runnableExamples:
{.push checks: off, line_dir: off, stack_trace: off, debugger: off.}
# the user does not want to trace a part of the standard library!
import std/[math, strformat]
import std/[math, strformat, strutils]
type
Complex*[T: SomeFloat] = object