Shadow-Devil commented on code in PR #1785:
URL: https://github.com/apache/groovy/pull/1785#discussion_r979319778
##########
src/spec/test/typing/TypeCheckingTest.groovy:
##########
@@ -44,6 +44,23 @@ class TypeCheckingTest extends StaticTypeCheckingTestCase {
'''
}
+ void testTypeCheckedEachWithIndex(){
+ //TODO: tags?
Review Comment:
Thank you very much for your help. I think I will add a simple test case
here
https://github.com/apache/groovy/blob/master/src/spec/test/gdk/WorkingWithArraysTest.groovy
that also works without my extension
and one with stc into here
https://github.com/apache/groovy/blob/master/src/test/groovy/transform/stc/DefaultGroovyMethodsSTCTest.groovy#L28-L40
that only works if we add the extension. Otherwise, I think it would be quite
weird for the reader of the doco to see a method annotated with
`@groovy.transform.TypeChecked`.
One small note: I thought the doco file should be about arrays, but in the
second paragraph you are talking about "Iterating on a list". Is this a maybe
typo?
--
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]