AnyDSL / thorin

The Higher-Order Intermediate Representation
https://anydsl.github.io
GNU Lesser General Public License v3.0
151 stars 15 forks source link

Warn about expressions being used as statements #6

Closed RalfJung closed 9 years ago

RalfJung commented 9 years ago

It would be really, really useful if impala could warn about pure expressions being used as statement, like

4;

This just bite me hard, when I had the following in my code in many places

return;

which of course did not return...

leissa commented 9 years ago

this was an impala issue. fixed.