mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-24 15:20:05 +02:00
Merge DMD 1.057.
This commit is contained in:
@@ -3701,7 +3701,12 @@ TemplateDeclaration *TemplateInstance::findTemplateDeclaration(Scope *sc)
|
||||
id = name;
|
||||
s = sc->search(loc, id, &scopesym);
|
||||
if (!s)
|
||||
{ error("template '%s' is not defined", id->toChars());
|
||||
{
|
||||
s = sc->search_correct(id);
|
||||
if (s)
|
||||
error("template '%s' is not defined, did you mean %s?", id->toChars(), s->toChars());
|
||||
else
|
||||
error("template '%s' is not defined", id->toChars());
|
||||
return NULL;
|
||||
}
|
||||
#if LOG
|
||||
|
||||
Reference in New Issue
Block a user