[ https://issues.apache.org/jira/browse/GROOVY-11302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-11302. ------------------------------ > Method call with type args loses information within trait > --------------------------------------------------------- > > Key: GROOVY-11302 > URL: https://issues.apache.org/jira/browse/GROOVY-11302 > Project: Groovy > Issue Type: Bug > Reporter: Eric Milles > Assignee: Eric Milles > Priority: Major > Labels: generics, traits > Fix For: 4.0.19, 5.0.0-alpha-6 > > > Consider the following: > {code:groovy} > trait T { > def <X> X m(x) {x} > @TypeChecked > def test() { > Number n = 1 > n = this.<Object>m(n) // should fail STC > } > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)