- Notifications
You must be signed in to change notification settings - Fork1.2k
Delete src/SourceBuild/patches/roslyn/0001-ambiguous-call-site.patch#41089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ViktorHofer commentedMay 22, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@jozkee can you please help with the failure in the sdk-source-build leg? Is the ambiguous call intentional?
I wonder why this only affects source-build and not the msft build. |
jozkee commentedMay 22, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
You can fix it by changing thesrc to It is not clear to me why the collection expression Nevertheless, for non-params overloads, this always resolves to List<string>names=new();Join([names]);staticstringJoin(stringseparator,ReadOnlySpan<string>value)=>"string";staticstringJoin(stringseparator,ReadOnlySpan<object>value)=>"object"; It can't convert to |
ViktorHofer commentedMay 22, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
In case it helps this is with |
jozkee commentedMay 22, 2024
Seems like you still need to keep the patch because roslyn hasn't bumped theirdotnet version and haven't stepped into this error. |
ViktorHofer commentedMay 22, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Just realized that this only affects source-build because in that build configuration, the library in question targets
Yes that's an option. I'm more concerned about a potential breaking change for our customers that we don't know about yet. |
333fred commentedMay 23, 2024
This will be solved by first-class spans.@jjonescz, another test case for the matrix. |
cston commentedMay 23, 2024
If the argument is a collection expression, the call may be ambiguous, even with first-class span support, becausebetter conversion for collection expressions currently has specific rules for span types and only falls back to implicit conversions for non-span types. Better conversion for collection expression conversions might need an additional rule to prefer |
333fred commentedMay 23, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I expect it will work like arrays do in this scenario, because |
cston commentedMay 23, 2024
The better conversion rules for collection expression conversions do not include a variance rule for The fix may be to add a rule tobetter conversion for collection expressions for |
cston commentedMay 23, 2024
Actually, removing the collection expression rules (and relying onfirst-class spans) would be a breaking change since we currently prefer |
jjonescz commentedJun 10, 2024
Tracked bydotnet/roslyn#73857 |
ViktorHofer commentedJun 17, 2024
dotnet/roslyn#73656 now hits the failure as well and I expect the roslyn team to fix / work around this directly in the roslyn code base to unblock the Arcade dependency flow. Therefore closing this PR. |
Testing