Closed
Description
Right now, new List.from()
and similar APIs take arguments with no generic types. This interferes with inference when using strong mode in two ways:
- If downward inference doesn't apply in the situation where
new List.from()
is used, the user has to explicitly write the generic parameter since upwards inference can't work. - If downward inference does apply, then the argument could have the wrong type and the user wouldn't be able to tell until runtime.
Neither of these situations is particularly useful. As we go forth into a strong-mode-by-default world, these APIs should get updated.