You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeMySeq=distinctseq[int]
procsetLen(s: varMySeq, newLen: Natural) {.borrow.}
var mySeq =MySeq(newSeq[int]())
mySeq.setLen(10)
Error after codegen:
error: request for member 'Sup' in something not a structure or union
(&myseq_97061_3173352949) = (TY97041*) setLengthSeq(&((&myseq_97061_3173352949))->Sup, sizeof(NI), ((NI) 10));
^
as far as I know distinct is something that you should not use at the moment, better use an object with a single member. This does of course not make this less of a bug.
Sample:
Error after codegen:
Nim d6ab21e
The text was updated successfully, but these errors were encountered: