paulk-asert commented on code in PR #1785:
URL: https://github.com/apache/groovy/pull/1785#discussion_r980582585


##########
src/test/groovy/transform/stc/DefaultGroovyMethodsSTCTest.groovy:
##########
@@ -37,6 +37,20 @@ class DefaultGroovyMethodsSTCTest extends 
StaticTypeCheckingTestCase {
                 println it // DGM#println(Object,Object)
             }
         '''
+
+        assertScript '''
+            int[] nums = [0, 1]
+            nums.each { it -> // ArrayGroovyMethods#each(int[], Closure)
+                println it.toDouble() // DGM#println(Object,Object)

Review Comment:
   Though we have many legacy tests which use println, we tend to avoid adding 
additional such tests when we can since they slow down the build and don't 
actually get automatically tested (even though the main objective here is for 
compilation to pass).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to