Commit 51c8f3c
authored
Address upcoming breaking change for span-valued collection expressions (#120771)
[Doc for upcoming breaking
change](https://github.com/dotnet/roslyn/blob/copilot/fix-safecontext-of-span-collection/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20DotNet%2011.md#the-safe-context-of-a-collection-expression-of-spanreadonlyspan-type-is-now-declaration-block)
See dotnet/roslyn#80684. TensorShape's constructor was the only break I
found when compiling the libraries. I fixed this by extracting the
collection-expression to the top level.1 parent e6fbfa2 commit 51c8f3c
File tree
1 file changed
+2
-2
lines changed- src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/netcore
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments