https://issues.dlang.org/show_bug.cgi?id=13879
Issue ID: 13879
Summary: Default inizialization of function pointers array
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
The default-inizialization of an array of function pointers has problems:
void main() {
bool function(int)[2] funcs1 = (int x) => true; // OK
funcs1[0] = x => true; // OK
bool function(int)[2] funcs2 = x => true; // Error
}
dmd 2.067alpha gives:
test.d(4,36): Error: template lambda has no value
--