Shadow-Devil commented on code in PR #1785:
URL: https://github.com/apache/groovy/pull/1785#discussion_r981093151


##########
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:
   I think I would stop writing tests in this test class and only use the tests 
inside the Javadoc since otherwise the number of tests would explode for ~60 
methods with each 8 primitive types (roundabout 480 tests).



-- 
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