ajwang / groovypptest

Automatically exported from code.google.com/p/groovypptest
0 stars 0 forks source link

in operator does not work #358

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Lost some time today due to this silly bug:

First assert works, while second one does not. If I remove @Typed, both work 
fine.

-------------------------------------------------------
@Typed 
class Dummy {
    private static final list = [1, 2]
    static main(args) {
        assert 1 in [1, 2] // works
        assert 1 in list // does not work
    }
}
-------------------------------------------------------

Original issue reported on code.google.com by roshanda...@gmail.com on 22 Mar 2011 at 6:13

GoogleCodeExporter commented 8 years ago

Original comment by alex.tka...@gmail.com on 29 Mar 2011 at 11:13

GoogleCodeExporter commented 8 years ago
We will report error if in-operator is applied to untyped value

Original comment by alex.tka...@gmail.com on 2 Apr 2011 at 3:18