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
using System;
public class Test
{
public void CopyTo(Span<byte> destination) {
destination = destination.Slice(7);
}
public void CopyTo2(Span<byte> destination) {
Console.WriteLine (destination.Length);
}
public static int Main(string[] args)
{
var slice = new Test ();
Span<byte> destination = new byte[7].AsSpan();
slice.CopyTo(destination);
slice.CopyTo2(destination);
return 0;
}
}
Activity
vargaz commentedon May 5, 2021
Testcase:
This prints 7 with non-aot, and 0 with aot.
vargaz commentedon May 5, 2021
Need this in the .csproj to reproduce:
[mono] Actually make a copy of vtype arguments on wasm.
[mono] Actually make a copy of vtype arguments on wasm. (#52290)
[wasm][aot] Update disabled tests to track new fixes on `main` (#52396)