Skip to content

Fix for struct init vs func literal, and this(a, b); being treated as a constructor declaration - #123

Closed
callumenator wants to merge 2 commits into
dlang-community:masterfrom
callumenator:fixes
Closed

callumenator wants to merge 2 commits into
dlang-community:masterfrom
callumenator:fixes

Conversation

@callumenator

Copy link
Copy Markdown
Contributor

Distinguish between these:

auto a = { return 1; }(); // func literal call
auto b = {1, 2, 3}; // structure init

And treat:

this(blah);

as a function call, not constructor decl.

@callumenator callumenator reopened this Feb 25, 2014
Vladiwostok added a commit to Vladiwostok/D-Scanner-OG that referenced this pull request Dec 12, 2024
Vladiwostok added a commit to Vladiwostok/D-Scanner-OG that referenced this pull request Jan 12, 2025
Albert24GG pushed a commit to Albert24GG/D-Scanner that referenced this pull request Aug 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant