Given this generic function:
<T> List<T> function() { return null; }
Why does this compile
List<String> l = function();
While this does not?
List<String> l = (List<String>) function();
Given this generic function:
<T> List<T> function() { return null; }
Why does this compile
List<String> l = function();
While this does not?
List<String> l = (List<String>) function();