You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Stefanos Chaliasos (Jira)" <ji...@apache.org> on 2022/06/29 09:21:00 UTC
[jira] [Commented] (GROOVY-10674) STC crashes when combining use-site variance with bounded polymorphism
| ![](cid:jira-generated-image-avatar-72effe9e-0aa0-4e79-bdf6-4e063742e8cd) |
[Stefanos
Chaliasos](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=schaliasos)
**commented** on [![Bug](cid:jira-generated-image-avatar-1068c1a7-1369-46ae-
abed-50d465da0fda)
GROOVY-10674](https://issues.apache.org/jira/browse/GROOVY-10674)
---|---
|
---
| [Re: STC crashes when combining use-site variance with bounded
polymorphism](https://issues.apache.org/jira/browse/GROOVY-10674)
---
|
Also, note that before <https://issues.apache.org/jira/browse/GROOVY-10153>
was fixed, the compiler rejected the program with the following error message:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Main.groovy: 2: The type ? is not a valid substitute for the bounded parameter <D extends M>
@ line 2, column 31.
static Foo<Bar<Byte, Byte>, ? super Bar<Byte, Byte>> foo = new Foo<>(new Bar<>())
^
1 error
---
| | [ ![Add Comment](cid:jira-generated-image-static-comment-
icon-c70a111c-e326-44c2-8a75-d916ac785080)
](https://issues.apache.org/jira/browse/GROOVY-10674#add-comment "Add
Comment") | [Add
Comment](https://issues.apache.org/jira/browse/GROOVY-10674#add-comment "Add
Comment")
---|---
| This message was sent by Atlassian Jira (v8.20.10#820010-sha1:ace47f9) | |
![Atlassian logo](https://issues.apache.org/jira/images/mail/atlassian-email-
logo.png)
---