Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.0-beta-1
-
None
Description
Consider the following:
def <T extends CharSequence> T chars() { "foo" } @groovy.transform.TypeChecked List test() { chars() }
The return type extends CharSequence, which is incompatible with List. No STC error is produced. This is a follow up from GROOVY-7316.
Attachments
Issue Links
- relates to
-
GROOVY-10342 STC is unable to infer type parameter of parameterized method call
- Closed