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
Even there is an ambiguous call SpreadAliasAsync(null), we still leave RequestContext optional, because SpreadAliasAsync(null) makes no sense.
What makes this scenario special from others is SpreadAliasAsync(null) makes sense to convenience method. So I think the protocol method should change when the first parameter in convenience method is not string.
Typespec:
Actual:
This call is an ambiguity:
SpreadAliasAsync(null)
. This will not happen tostring
, see details in #3587.Expected:
In the normal case like
Even there is an ambiguous call
SpreadAliasAsync(null)
, we still leaveRequestContext
optional, becauseSpreadAliasAsync(null)
makes no sense.What makes this scenario special from others is
SpreadAliasAsync(null)
makes sense to convenience method. So I think the protocol method should change when the first parameter in convenience method is not string.Solution:
Update:
According to #3587 (comment), we don't take
SpreadAliasAsync(null)
into consideration, so leaveRequestContext context = null
.The text was updated successfully, but these errors were encountered: