Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
I have the following program
final class Test<T extends Number> { final void m() { T v = null; } }
Actual Behaviour
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
test.groovy: 5: [Static type checking] - Cannot assign value of type <unknown parameter type> to variable of type T
@ line 5, column 11.
T v = null;
^1 error
Expected Behaviour
Tested against master https://github.com/apache/groovy/commit/7a56d7130aaf7b5244fa5a82fa0505fb7509f51f