Skip to content

Conversation

@CyberShadow
Copy link
Member

Tests the if (params) break; branch in TOK.identifier case, ensuring function-like macros with identifier bodies are handled by caseFunctionLike, not the new nullary template path.

🤖 Generated with Claude Code

#22347 (comment)

Tests the `if (params) break;` branch in TOK.identifier case,
ensuring function-like macros with identifier bodies are handled
by caseFunctionLike, not the new nullary template path.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @CyberShadow!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#22349"

When we reach TOK.identifier case, params is always false because
if params were true (macro name followed by '('), the next token
would be TOK.leftParenthesis, not TOK.identifier.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@thewilsonator thewilsonator merged commit f2fcacb into dlang:master Jan 5, 2026
41 of 42 checks passed
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.

4 participants