You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 3rd example, without explicitly specifying foo parameter type, the return type of fetch function infers as unknown.
FYI: foo type infers correctly from Options inferface.
π Expected behavior
The code 3rd example works like the first two examples, correctly infering the fetch function's return type.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
generic function infer unknown type without specifying parameter type
π Version & Regression Information
Faced it with 4.3.5, but it still occurs in 4.6.3 and Nightly (v4.7.0-dev.20220302)
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
In 3rd example, without explicitly specifying
foo
parameter type, the return type offetch
function infers asunknown
.FYI:
foo
type infers correctly fromOptions
inferface.π Expected behavior
The code 3rd example works like the first two examples, correctly infering the
fetch
function's return type.The text was updated successfully, but these errors were encountered: