Skip to content

Commit 4fe8f16

Browse files
committed
replace tip() with errorSupplemental()
1 parent d44ea0c commit 4fe8f16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

compiler/src/dmd/templatesem.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3862,18 +3862,18 @@ bool findBestMatch(TemplateInstance ti, Scope* sc, ArgumentList argumentList)
38623862
{
38633863
// Only one template, so we can give better error message
38643864
const(char)* msg = "does not match template declaration";
3865-
const(char)* tip;
38663865
OutBuffer buf;
38673866
HdrGenState hgs;
38683867
hgs.skipConstraints = true;
38693868
toCharsMaybeConstraints(tdecl, buf, hgs);
38703869
const tmsg = buf.peekChars();
3870+
const(char)* tip;
38713871
const cmsg = tdecl.getConstraintEvalError(tip);
38723872
if (cmsg)
38733873
{
38743874
eSink.error(ti.loc, "%s `%s` %s `%s`\n%s", ti.kind, ti.toPrettyChars, msg, tmsg, cmsg);
38753875
if (tip)
3876-
.tip(tip);
3876+
eSink.errorSupplemental(Loc.init, tip);
38773877
}
38783878
else
38793879
{

0 commit comments

Comments
 (0)