Return type is any
of getter in object passed as generic
#49511
Labels
Milestone
any
of getter in object passed as generic
#49511
Bug Report
When the following is true:
this
Then the return type of the getter will be
any
.If you either remove the function from the object or create the object before passing it into the function the getter will return the correct type.
🔎 Search Terms
any, object, generic
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
Return type of getters are
any
🙂 Expected behavior
Return type of getters have the type of the returned data
The text was updated successfully, but these errors were encountered: