do not go out of bounds
This commit is contained in:
parent
f4d0b2e548
commit
3269a2c190
|
|
@ -186,8 +186,13 @@ DSymbol* createTypeWithTemplateArgs(DSymbol* type, TypeLookup* lookup, VariableC
|
||||||
if (part.kind == CompletionKind.typeTmpParam)
|
if (part.kind == CompletionKind.typeTmpParam)
|
||||||
{
|
{
|
||||||
scope(exit) count++;
|
scope(exit) count++;
|
||||||
|
if (count >= ti.args.length)
|
||||||
warning("building mapping for: ", part.name, " chain: ", ti.args[count].chain);
|
{
|
||||||
|
warning("too many T for args available, investigate");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
warning("building mapping for: ", part.name," count: ", count, "/", ti.args.length, " chain: ");
|
||||||
|
warning(" ", ti.args[count].chain);
|
||||||
auto key = part.name;
|
auto key = part.name;
|
||||||
|
|
||||||
DSymbol* first;
|
DSymbol* first;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue