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
The spec and implementation need to be updated. The following should fail
publicclassC{boolflag1=true;boolflag2=false;publicvoidM(refSpan<int>global){Span<int>local=stackallocint[10];refvarr1=ref(flag1?refglobal:ref local);refvarr2=ref(flag2?refglobal:ref local);// same as global = local; which would be an error.// but we can’t fail here, since r1 and r2 are basically the same, // so should fail when making r1 and r2 above.r1=r2;// it would require val-escape scopes for r1 and r2 be different.// easier to say that val-escape must match}}
The text was updated successfully, but these errors were encountered:
The spec and implementation need to be updated. The following should fail
The text was updated successfully, but these errors were encountered: