Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.0, 2.4.0-rc-1
-
None
Description
@groovy.transform.CompileStatic class Example { static void main(String[] args) { Collections.<String>emptyList().get(0).toUpperCase() } }
That fails to compile because it doesn't respect the <String> hint.
Attachments
Issue Links
- is related to
-
GROOVY-7307 Narrower generic type not taken into account when calling another generic method
- Closed