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

--- Comment #0 from 2012-02-19 14:48:36 PST ---
void foo(){}
void foo(int){}

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

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:
------- You are receiving this mail because: -------

Reply via email to