http://d.puremagic.com/issues/show_bug.cgi?id=2438
Summary: Cannot get types of delegate properties
Product: D
Version: 2.020
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
alias void delegate() Dg;
alias typeof(Dg.ptr) Ptr;
alias typeof(Dg.funcptr) Funcptr;
----
test.d(13): Error: argument void* to typeof is not an expression
test.d(13): Error: argument void* to typeof is not an expression
test.d(14): Error: void delegate() is not an lvalue
Worked around by defining an intermediate delegate instance:
alias void delegate() Dg;
Dg dummy;
alias typeof(dummy.ptr) Ptr;
alias typeof(dummy.funcptr) Funcptr;
--