https://d.puremagic.com/issues/show_bug.cgi?id=12334
Summary: Cannot access frame pointer of nested class from
inside lambda
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Kenji Hara <[email protected]> 2014-03-09 22:06:51 PDT ---
From: http://forum.dlang.org/thread/[email protected]
void main()
{
class B
{
int a;
this(int aa) { a = aa; }
}
auto foo = {
return new B(1); // NG
};
static assert(is(typeof(foo) == delegate)); // fails
}
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------