Request for cast operation #3513
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
Milestone
if a function such es .queryAll("...") returns a NodeList. However if I know that this list is actually an ElementList and I pass the .queryAll("...") result to a function that expects an ElementList in it's signature I am getting i warning.
'NoteList' is not assignable to 'ElementList'.
It would be great if a "cast" like expression could be used to suppress such warnings
////////////////////////////////////////////////////////////////////////////////////
Editor Version: 8370
[Editor note: the cast operator "as" was recently introduced to the language]
The text was updated successfully, but these errors were encountered: