http://d.puremagic.com/issues/show_bug.cgi?id=10495
Summary: Incorrect "initializer required" error using lambdas
in class with fields with disabled default
construction
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: major
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Denis Shelomovskij <[email protected]> 2013-06-28
19:18:41 MSD ---
This blocks usage of `std.range` and `std.algorithm` functions in some cases:
---
struct S0
{ @disable this(); }
struct S(alias f)
{
void g() { }
}
class C
{
S0 s = S0.init;
void h()
{
S!(a => a) st; // Error: variable main.C.h.st initializer required for
type S!(__lambda2)
}
}
---
May be related to Issue 7892.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------