Bug 12522 – (void delegate() f) is not callable using argument types (void function() pure nothrow @safe)

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-04-04T23:14:08Z
Last change time
2024-12-13T18:19:26Z
Assigned to
No Owner
Creator
Dylan Knutson
Moved to GitHub: dmd#18810 →

Comments

Comment #0 by tcdknutson — 2014-04-04T23:14:08Z
This code fails to compile, but should: ``` void real_func(void delegate() f) {} // this SHOULD just forward arg as if real_func was called directly auto forward(T)(T arg) { real_func(arg); } void main() { // fails (shouldn't) forward(() {}); // doesn't fail // real_func(() {}); } ``` related dpaste: http://dpaste.dzfl.pl/dbe351629838
Comment #1 by robert.schadek — 2024-12-13T18:19:26Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18810 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB