[Issue 22842] importC: Error: variable 'fun' cannot be declared to be a function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 5 06:10:12 UTC 2022


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
Even worse:

  typedef int (myfunc)();
  myfunc fun;

fails with "Error: variable `test.fun` cannot be declared to be a function"

--


More information about the Digitalmars-d-bugs mailing list