[Issue 10560] Enum typed as int with value equal to 0 or 1 prefer bool over int overload

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 7 00:21:26 PDT 2013


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


Maxim Fomin <maxim at maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim at maxim-fomin.ru


--- Comment #1 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-07-07 00:21:26 PDT ---
This is a separate issue. Boo should be Boo in the first place and int in the
second. In referenced issue bool and long are overloaded, here are bool and
int. If you pass 1 in such case int version should be called. Problem here is
that int was converted to bool and passed to bool overload instead of int which
is a bug.

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


More information about the Digitalmars-d-bugs mailing list