www.digitalmars.com         C & C++   DMDScript  

D - BUG: Properties and implicit conversions of ints

This was a bug with floats once upon a time, but now I've found
that the same is true for ints. The attached example won't compile
with this error message.

C:\projects\code\foo>dmd foo.d
foo.d(25): cannot implicitly convert int() to int

Lars Ivar Igesund


begin 666 foo.d
M8VQA<W, 9F]O('L-" T*("!T:&ES*"D-"B  >PT*("  ('!?<')O<" ](# [
M#0H ('T-" T*("!I;G0 <')O<" I#0H ('L-"B  ("!R971U<FX <%]P<F]P
M.PT*("!]#0H-"B  :6YT('!?<')O<#L-"GT-" T*8VQA<W, 8F%R('L-" T*
M("!T:&ES*&9O;R!O8FHI#0H ('L-"B  ("!P7V]B:B ](&]B:CL-"B  ?0T*
M#0H (&EN="!P<F]P*"D-"B  >PT*("  (')E='5R;B!P7V]B:BYP<F]P.PT*
M("!]#0H-"B  9F]O('!?;V)J.PT*?0T*#0IV;VED(&UA:6XH*0T*>PT*("!N
797< 8F%R*&YE=R!F;V\H*2D[#0I]#0H`
`
end
Oct 29 2003