Fix range violation with index expressions

This commit is contained in:
Hackerpilot 2015-01-14 15:43:02 -08:00
parent 1ac5ff1fd7
commit 63e4c2cf47
2 changed files with 5 additions and 2 deletions

View File

@ -100,7 +100,8 @@ DEBUG_SERVER_FLAGS := -Icontainers/src\
-Ilibdparse/src\
-wi\
-g\
-ofbin/dcd-server
-ofbin/dcd-server\
-J.
GDC_SERVER_FLAGS := -Icontainers/src\
-Imsgpack-d/src\

View File

@ -727,11 +727,13 @@ ACSymbol*[] getSymbolsByTokenChain(T)(Scope* completionScope,
if (!p.isSliceExpression())
{
symbols = symbols[0].type is null ? [] : [symbols[0].type];
if (symbols.length == 0)
break loop;
}
}
else if (symbols[0].qualifier == SymbolQualifier.assocArray)
{
symbols = symbols[0].type is null ? [] :[symbols[0].type];
symbols = symbols[0].type is null ? [] : [symbols[0].type];
skip();
}
else