Re: incomprehensible return error bug?

2010-01-25 Thread strtr
g Wrote: > g Wrote: > > > 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 t

Re: incomprehensible return error bug?

2010-01-24 Thread g
g Wrote: > 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,

Re: incomprehensible return error bug?

2010-01-24 Thread g
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 pro

Re: incomprehensible return error bug?

2010-01-24 Thread strtr
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 wh

Re: incomprehensible return error bug?

2010-01-24 Thread strtr
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 exp

incomprehensible return error bug?

2010-01-24 Thread strtr
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?