← Back to index
|
Original Bugzilla link
Bug 23560 – Deduce ABI from function parameter for function literal
Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-12-15T18:51:13Z
Last change time
2024-12-13T19:26:25Z
Assigned to
No Owner
Creator
Richard (Rikki) Andrew Cattermole
Moved to GitHub: dmd#18143 →
Comments
Comment #0
by alphaglosined — 2022-12-15T18:51:13Z
This was discovered by Hipreme on Discord. ```d alias myArg = extern(C) void function(); void test(scope myArg b){ b(); } void main() { test((){}); } ``` Error: ``` <source>(8): Error: function `example.test(scope extern (C) void function() b)` is not callable using argument types `(void function() pure nothrow @nogc @safe)` <source>(8): cannot pass argument `__lambda1` of type `void function() pure nothrow @nogc @safe` to parameter `scope extern (C) void function() b` ```
Comment #1
by robert.schadek — 2024-12-13T19:26:25Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/18143
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB