D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7501 - Array of function pointers append
Summary: Array of function pointers append
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2012-02-13 20:50 UTC by bearophile_hugs
Modified: 2012-04-20 02:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2012-02-13 20:50:03 UTC
void main() {
    bool function(int)[] predicates;
    predicates.length = 1;
    predicates[0] = s => true; // OK
    predicates ~= s => true; // Error
}


DMD 2.058beta3:

test.d(5): Error: expression __lambda4 is void and has no value
Comment 1 SomeDude 2012-04-20 00:16:28 UTC
Works on 2.059 Win32