[ https://issues.apache.org/jira/browse/GROOVY-8974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles reassigned GROOVY-8974: ----------------------------------- Assignee: Eric Milles > STC ignores declaration type > ---------------------------- > > Key: GROOVY-8974 > URL: https://issues.apache.org/jira/browse/GROOVY-8974 > Project: Groovy > Issue Type: Bug > Components: Static Type Checker > Affects Versions: 2.5.5 > Reporter: Daniil Ovchinnikov > Assignee: Eric Milles > Priority: Major > > {code:java} > static <T> T id(T arg) { arg } > @groovy.transform.CompileStatic > def ddd() { > List<String> ls = id(new ArrayList<>()) > ls.get(0).toUpperCase() // Cannot find matching method > java.lang.Object#toUpperCase() > } > println ddd() > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)