[Issue 22904] importC: syntax error for function call with casted result and parentheses around name

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 22 13:58:13 UTC 2022


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

duser at neet.fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #3 from duser at neet.fi ---
still gives an error with typedef types:

typedef long my_long;
int fn1() { return 0; }
void fn2() { long x = (my_long) (fn1) (); }

Error: function expected before `()`, not `cast(long)& fn1` of type `long`

--


More information about the Digitalmars-d-bugs mailing list