[Issue 12334] New: Cannot access frame pointer of nested class from inside lambda
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 9 22:06:53 PDT 2014
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: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2014-03-09 22:06:51 PDT ---
From: http://forum.dlang.org/thread/dssheasplbyknhautzsq@forum.dlang.org
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: -------
More information about the Digitalmars-d-bugs
mailing list