Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
I have the following program
class A<T> { } class B { A<? extends Object> test() { return test2(); } A<? extends Object> test2() { return null; } }
Actual behaviour
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: test.groovy: 6: [Static type checking] - Incompatible generic argument types. Cannot assign A<?> to: A<? extends java.lang.Object> @ line 6, column 12. return test2(); ^1 error
Expected behaviour
Compile successfully
Tested against master
Attachments
Issue Links
- relates to
-
GROOVY-10576 STC: map putAll fails to match "?" to "Object"
- Closed