www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22407] New: importC: Error: cannot implicitly convert

https://issues.dlang.org/show_bug.cgi?id=22407

          Issue ID: 22407
           Summary: importC: Error: cannot implicitly convert expression
                    of type 'extern (C) int(int a)' to 'const(extern (C)
                    int function(int))'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

---
typedef int (*func) (int a);
int fun1 (int a);
const func table[1] = { fun1 };

--
Oct 17 2021