fixed index out of bounds error
This commit is contained in:
parent
570f69f64e
commit
93915f4998
2
parser.d
2
parser.d
|
@ -562,7 +562,7 @@ body
|
||||||
f.attributes.insertInPlace(f.attributes.length, attributes);
|
f.attributes.insertInPlace(f.attributes.length, attributes);
|
||||||
|
|
||||||
Variable[] vars1 = parseParameters(tokens, index);
|
Variable[] vars1 = parseParameters(tokens, index);
|
||||||
if (tokens[index] == TokenType.LParen)
|
if (index < tokens.length && tokens[index] == TokenType.LParen)
|
||||||
{
|
{
|
||||||
f.templateParameters.insertInPlace(f.templateParameters.length,
|
f.templateParameters.insertInPlace(f.templateParameters.length,
|
||||||
map!("a.type")(vars1));
|
map!("a.type")(vars1));
|
||||||
|
|
Loading…
Reference in New Issue