Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4.10
-
None
-
Windows 7, JDK 1.8.0_66
Description
Input files:
Test.groovy
class Test { static void main(String[] args) { [1, 2, 3].stream()*.toString() } }
compiler-config.groovy
import groovy.transform.CompileStatic
withConfig(configuration) {
ast(CompileStatic)
}
Error:(3, 9) Groovyc: [Static type checking] - Spread operator can only be used on collection types
Expected: static type checking allows spread operator for streams
Attachments
Issue Links
- relates to
-
GROOVY-11305 STC: support for-each or for-in loop for implicitly-Iterable type
- Resolved
-
GROOVY-10473 Extend streams support to spread and subscript
- Closed
-
GROOVY-10476 STC: for-each loop on iterable-like types
- Closed