http://d.puremagic.com/issues/show_bug.cgi?id=7301



--- Comment #3 from Jerry Quinn <jlqu...@optonline.net> 2012-01-16 21:34:51 PST 
---
(In reply to comment #2)
> This is the same for basic types.
> 
> bool foo(){return 2;}  // error
> bool bar(){return !2;} // fine
> 
> I don't think we are looking at a bug here.

Are you saying that type conversion isn't supposed to happen when a value is
returned?

http://www.d-programming-language.org/statement.html#ReturnStatement says:

"The Ex�pres�sion is im�plic�itly con�verted to the func�tion re�turn type."

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to