[Issue 10886] Typeof in templates works incorrectly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 24 14:41:46 PDT 2013


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-08-24 14:41:46 PDT ---
It's unrelated to templates:

-----
struct A
{
    @property int foo() { return 0; }
    int bar() { return 0; }
}

struct B
{
    void bar()
    {
        alias f = typeof(A.foo);  // NG
        alias b = typeof(A.bar);  // ok
    }
}

void main()
{
}
-----

AFAIK there are/will be changes to how typeof() works with properties as well.

-- 
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