[Issue 8822] New: Usiing qualified delegate type in template argument causes parser error.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 14 20:38:22 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8822
Summary: Usiing qualified delegate type in template argument
causes parser error.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
Depends on: 4838
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2012-10-14 20:38:19 PDT ---
Spin out issue from bug 8813.
This is a rest of bug 4838.
void main()
{
struct S { void foo() const {} }
S s;
void delegate() const dg = &s.foo; // OK
void foo(void delegate() const dg){} // OK
struct Foo(T) {}
alias Foo!(void delegate() const) X; // NG
}
--
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