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
You don't get any further completions because you already have a valid object.
I did think that would be the case, but it does feel like a bit of an odd behaviour to have as you could have another valid object with the b as a property.
leoriviera
changed the title
IntelliSense should suggest all possible object attributes for overloaded function
IntelliSense should suggest all possible object properties for overloaded function
Jan 19, 2022
This is the intended behavior (as in, it used to work this way and now it doesn't) - people didn't like when "extra" properties showed up in the list, especially in cases where there was an obvious discriminant argument earlier in the argument list.
Bug Report
🔎 Search Terms
union of types on function overload
function overloading not showing arguments in object with intellisense
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
Trigger completions at
|
🙁 Actual behavior
No further completion suggestions are returned.
🙂 Expected behavior
A suggestion for both
b
should be returned as that is a valid option ifargs
is of typeY
.The text was updated successfully, but these errors were encountered: