Eric Milles created GROOVY-10088:
------------------------------------

             Summary: STC: type argument not applied to error message
                 Key: GROOVY-10088
                 URL: https://issues.apache.org/jira/browse/GROOVY-10088
             Project: Groovy
          Issue Type: Bug
          Components: Static Type Checker
            Reporter: Eric Milles
            Assignee: Eric Milles


Consider the following:
{code:groovy}
class C<T> {
  void setP(T t) { }
}
class D<X> extends C<X> {
}
@groovy.transform.TypeChecked
void test() {
  new D<Number>().p = 'x' // Cannot assign value of type java.lang.String to 
variable of type T
}
{code}

Error message references "T" and not "java.lang.Number".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to