Allow empty type parameters in type annotations and infer generics for initialized variable declarations (diamond operator) #10611
Labels
area-language
New language issues should be filed at https://github.com/dart-lang/language
closed-obsolete
Closed as the reported issue is no longer relevant
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
A variable declaration with generics often includes visually redundant type information, for example:
Removing the generics from either side does have effects though, especially in checked mode. We should support inferring generics for initialized variable declarations. This would allow type checks in checked-mode, but reduce visual redundancy:
The text was updated successfully, but these errors were encountered: