Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/ddmd/toobj.d
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ void write_instance_pointers(Type type, Symbol *s, uint offset)

void toObjFile(Dsymbol ds, bool multiobj)
{
//printf("toObjFile(%s)\n", ds.toChars());
extern (C++) final class ToObjFile : Visitor
{
alias visit = super.visit;
Expand Down Expand Up @@ -1361,7 +1362,7 @@ private void finishVtbl(ClassDeclaration cd)
TypeFunction tf = cast(TypeFunction)fd.type;
if (tf.ty == Tfunction)
{
cd.error("use of %s%s is hidden by %s; use 'alias %s = %s.%s;' to introduce base class overload set",
cd.error("use of `%s%s` is hidden by `%s`; use `alias %s = %s.%s;` to introduce base class overload set",
fd.toPrettyChars(),
parametersTypeToChars(tf.parameters, tf.varargs),
cd.toChars(),
Expand All @@ -1370,7 +1371,7 @@ private void finishVtbl(ClassDeclaration cd)
fd.toChars());
}
else
cd.error("use of %s is hidden by %s", fd.toPrettyChars(), cd.toChars());
cd.error("use of `%s` is hidden by `%s`", fd.toPrettyChars(), cd.toChars());
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/fail_compilation/diag6373.d
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
REQUIRED_ARGS: -de
TEST_OUTPUT:
---
fail_compilation/diag6373.d(15): Error: class diag6373.Bar use of diag6373.Foo.method(double x) is hidden by Bar; use 'alias method = Foo.method;' to introduce base class overload set
fail_compilation/diag6373.d(15): Error: class diag6373.Bar use of `diag6373.Foo.method(double x)` is hidden by `Bar`; use `alias method = Foo.method;` to introduce base class overload set
---
*/

Expand Down