|Posted by Bernard Helyer||PermalinkReply|
I just found a bug in my code that showed up in this fragment:
ie.type == parseType(ts);
Obviously I meant
ie.type = parseType(ts);
but wrote == because I'm an idiot. If parseType wasn't a function
with side effects, -w would have flagged it as an expression with
no effect. But the comparison still has no side effects. Thoughts?
p.s. as a side note, I think this is the first time I've had a bug
from writing == where I meant = instead of the other way around!