incomprehensible return error bug?
strtr
strtr at spam.com
Sun Jan 24 15:47:02 PST 2010
strtr Wrote:
> enum { A = 0, B, C }
>
> void func(){ return A; }
>
> void main()
> {
> }
>
> main.d(1): Error: long has no effect in expression (0)
>
> Is this a bug?
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 :(
More information about the Digitalmars-d-learn
mailing list