Bernd Baumanns
Bernd Baumanns
@AlekseyTs can you review again?
I observed this in a recursive function called with runtime data which can't be inlined (and was not inlined). The overall impact is enormous. With pure native types this function...
Could you forward this issue to the compiler team?
The string interpolation is handled internally as collection-expression conversion to a readonly span (a debug assert is also triggered). This is okay only in non expression trees. Currently: `System.String! System.String.Format(System.String!...
The collection-conversion comes to play at (here we lower and assume overload resolution to pick the right one): https://github.com/dotnet/roslyn/blob/3a3c108d86c3cbb00049bfc4f5f9a04a42fa4b1b/src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LocalRewriter_StringInterpolation.cs#L354 This is great because we have multiple overloads, with and without...
Unable to reproduce your issue - how do you execute "run tests/RoslynNreRepro/RoslynNreRepro.csproj".
still can't reproduce on my machine it works fine