I tried to post this last night, but the NG wasn't having any of it.

I found myself writing a bug that looked like this

    match(ts, TokenType.Is);
    match(ts, TokenType.OpenParen);
    isExp.type == parseType(ts);

The bug being of course, that a type is parsed and ts is modified,
so the expression has side effects so it's not flagged as a useless expression. But the comparison still has no effect, so should this be
flagged by DMD?

-Bernard.

Reply via email to