Bug 7501 – Array of function pointers append

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-02-13T20:50:00Z
Last change time
2012-04-20T02:27:25Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-02-13T20:50:03Z
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 by lovelydear — 2012-04-20T00:16:28Z
Works on 2.059 Win32
Comment #2 by k.hara.pg — 2012-04-20T02:27:25Z