Fixed `ResultOfAssignmentUsed` inspection, when it's not in method
[idea/community.git] / plugins / groovy / testdata / highlighting / UnusedInc.groovy
1 def a = 4
2 print (++a)
3 print (a<warning descr="Unused ++">++</warning>)
4
5 def b = 3
6 b<warning descr="Unused ++">++</warning>
7        <warning descr="Assignment is not used">b</warning> = 3