Open
Description
I recently found #39277 and the example code it provides is the following:
_createChildren() {
return [Text("Hello"), Text("Lars"), Text("Testing")];
}
With strict-inference: true
the above code triggers an inference_failure_on_function_return_type
hint.
But the weird thing is that it also triggers the Add return type
assist.
I could not understand the docs on strict-inference for function return types fully, so maybe this is not a bug but it got me thinking on why should it be triggering when it does know how to infer the return type with the assist.