Incorrect implicit downcast error in async functions with FutureOr #30638
Labels
language-strong-mode-polish
legacy-area-analyzer
Use area-devexp instead.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
The following code, when analyzer with
--strong --no-implicit-casts
produces type errors on both function returns:As far as I can tell, there should be no error here: there is no implicit downcast.
Oddly enough, DDC (correctly) does not insert a downcast, so this error must presumably be coming from somewhere other than the checker.
cc @natebosch @jmesserly @stereotype441
The text was updated successfully, but these errors were encountered: