timotheecour / Nim

Nim is a compiled, garbage-collected systems programming language with a design that focuses on efficiency, expressiveness, and elegance (in that order of priority).
http://nim-lang.org/
Other
2 stars 0 forks source link

net broken, devel, type mismatch #798

Closed juancarlospaco closed 2 years ago

juancarlospaco commented 2 years ago
$ choosenim update devel
Info: Version #devel already selected

$ nim doc Nim/lib/pure/net.nim

Nim/lib/pure/net.nim(1408, 12) Error: type mismatch: got <Duration, Duration>
but expected one of:
proc `+=`(d1: var Duration; d2: Duration)
  first type mismatch at position: 2
  required type for d2: Duration
  but expression 'getMonoTime() - startTime' is of type: Duration
7 other mismatching symbols have been suppressed; compile with --showAllMismatches:on to see them

expression: waited += getMonoTime() - startTime

$
timotheecour commented 2 years ago

did you forget --lib ? eg nim doc --lib:lib lib/pure/net ?