mirror of
https://github.com/dlang/dmd.git
synced 2025-04-28 06:00:13 +03:00
improve error messages
This commit is contained in:
parent
4775c4c5be
commit
9d42b92420
1 changed files with 2 additions and 2 deletions
|
@ -607,9 +607,9 @@ void Dsymbol::checkDeprecated(Loc loc, Scope *sc)
|
||||||
if (!(sc->func && sc->func->storage_class & STCdisable))
|
if (!(sc->func && sc->func->storage_class & STCdisable))
|
||||||
{
|
{
|
||||||
if (d->ident == Id::cpctor && d->toParent())
|
if (d->ident == Id::cpctor && d->toParent())
|
||||||
d->toParent()->error(loc, "is not copyable");
|
d->toParent()->error(loc, "is not copyable because it is annotated with @disable");
|
||||||
else
|
else
|
||||||
error(loc, "is not callable");
|
error(loc, "is not callable because it is annotated with @disable");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue