Bug 24738 – Import core.interpolation suggestion

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2024-09-01T17:40:42Z
Last change time
2024-09-13T11:35:50Z
Keywords
pull
Assigned to
No Owner
Creator
Marcelo Silva Nascimento Mancini

Comments

Comment #0 by msnmancini — 2024-09-01T17:40:42Z
When identifying errors such as ``` onlineapp.d(4): Error: undefined identifier InterpolationHeader onlineapp.d(47): Error: template heresy is not callable using argument types !()(InterpolationHeader, InterpolatedLiteral!"http://localhost:8000/users/userid=", InterpolatedExpression!"i", int, InterpolationFooter) onlineapp.d(4): Candidate is: heresy(Args...)(InterpolationHeader header, Args args, InterpolationFooter footer) ``` InterpolationHeader, InterpolationFooter, the compiler could suggest the import as it can be tricky for someone starting to use the interpolation feature.
Comment #1 by dlang-bot — 2024-09-13T10:36:08Z
@dkorpel created dlang/dmd pull request #16838 "Fix bugzilla 24738 - Import core.interpolation suggestion" fixing this issue: - Fix bugzilla 24738 - Import core.interpolation suggestion https://github.com/dlang/dmd/pull/16838
Comment #2 by dlang-bot — 2024-09-13T11:35:50Z
dlang/dmd pull request #16838 "Fix bugzilla 24738 - Import core.interpolation suggestion" was merged into master: - 69b2970ebcbbb579708c54965038184fd55613e0 by Dennis Korpel: Fix bugzilla 24738 - Import core.interpolation suggestion https://github.com/dlang/dmd/pull/16838