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

           Summary: typeof of overloaded function picks the lexically
                    first one
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: timon.g...@gmx.ch


--- Comment #0 from timon.g...@gmx.ch 2012-02-19 14:48:36 PST ---
void foo(){}
void foo(int){}

Without further information, a declaration that contains typeof(foo) should
fail.

static assert(!is({typeof(foo)* x;}));

OTOH, 'foo' has some type, we just don't know which one. 

static if(is(typeof(foo));

The simplest way to resolve this would be to define typeof(overloadset):=void.

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

Reply via email to