Type inference doesn't work nicely with function types #30822
Labels
closed-duplicate
Closed in favor of an existing report
language-strong-mode-polish
legacy-area-analyzer
Use area-devexp instead.
/cc @leafpetersen
I just ran into the following bug in the type inference:
Clearly, the return type of the function literal is
T Function()
.Removing either
return
makes the whole thing work. But having both at the same time leads to an error.The text was updated successfully, but these errors were encountered: