Closed ringabout closed 1 year ago
Here is the definition of parReq, which is an int type
parReq
parReq*: int ## flag indicating parameter is mandatory
Here is the definition of isReq, which is a boolean type
isReq
let isReq = if i in mandatory: true else: false
In the quote block, isReq is assigned to the parReq field, which has incompatible types.
`apId`.parReq = `isReq`
It is not safe to rely on the type erasure at the compile time, which might be changed in the future => https://github.com/nim-lang/Nim/pull/21433
Thank you!!
Here is the definition of
parReq
, which is an int typeHere is the definition of
isReq
, which is a boolean typeIn the quote block,
isReq
is assigned to theparReq
field, which has incompatible types.It is not safe to rely on the type erasure at the compile time, which might be changed in the future => https://github.com/nim-lang/Nim/pull/21433