void type mismatch when trying to overload foreign trace hook
disruptek opened this issue · comments
Smooth Operator commented
/home/adavidoff/git/passenger/tests/tgoto.nim(23, 18) template/generic instantiation of `cps` from here
/home/adavidoff/git/passenger/tests/tgoto.nim(26, 12) template/generic instantiation of `cpsJump` from here
/home/adavidoff/git/passenger/deps/pkgs/cps-0.0.25/cps/transform.nim(76, 21) Error: type mismatch: got <void, string, LineInfo>
but expected one of:
proc trace(c: Continuation; fun: string; info: LineInfo)
first type mismatch at position: 1
required type for c: Continuation
but expression 'continuation' is of type: void
expression: trace(continuation, "afterCall_419435460", LineInfo(
filename: "/home/adavidoff/git/passenger/tests/tgoto.nim", line: 31,
column: 12))
Smooth Operator commented
Fixed between 0.0.25 and 0.0.30. 😀