incomprehensible return error bug?
g
g at g.g
Sun Jan 24 23:13:50 PST 2010
strtr Wrote:
> strtr Wrote:
>
> > This error also points to the enum which is probably incorrectly used somewhere
> > s_def(32) Error: cannot implicitly convert expression (5) of type int to S
> >
> > Still searching for the original bug btw :(
>
> Found it, also a return type mismatch problem; returning a enum member where the encapsulating struct should have been returned.
BTW, the function says void ( no return ) and you try tu return an integer ( form a enum )
yea, is incomprehensible but is not wrong
More information about the Digitalmars-d-learn
mailing list