[Issue 21992] importC: Error: variable is used as a type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 27 23:38:46 UTC 2021


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

--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
Because ( ) are not seen by the semantic code, the best solution is for the
parser to turn (i)*2 into a cast expression. Then, if the semantic pass
determines that i is a variable, rewrite the cast expression into a multiply.

Do the analogous thing for -, +, and & operators.

--


More information about the Digitalmars-d-bugs mailing list