Emit file and line info for 'Array operation ... not recognized' error.

Fixes #326.
This commit is contained in:
Christian Kamm
2009-06-22 19:31:25 +02:00
parent 265cbea170
commit 5658d9bb38

View File

@@ -612,7 +612,7 @@ static void errorOnIllegalArrayOp(Expression* base, Expression* e1, Expression*
(t2->ty == Tarray || t2->ty == Tsarray)
)
{
error("Array operation %s not recognized", base->toChars());
base->error("Array operation %s not recognized", base->toChars());
fatal();
}
}