"GROOVY-6167" should be finally fixed by 1) fix resolving [1] (pushed just now, will be included in 2.5.0 GA) 2) fix type inference [2]
But it's really weird, I still don't know the reason why the test[3] always passes... P.S. The issue number should be 6167(not 6171), it is fixed by too Cheers, Daniel.Sun [1] https://github.com/apache/groovy/commit/29e68b7d99a1e41a73a5e33a5bb0d3b436d03b5f [2] https://github.com/apache/groovy/commit/48807d5b1ba094e2f0dc212b6c92b4b370fe8394 [3] https://github.com/apache/groovy/blob/GROOVY_2_5_0_RC_3/src/test/groovy/bugs/Groovy6171Bug.groovy#L58-L71 -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html