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
Creating a static append List<T> field with an initial capacity, overlays the memory for the static fields that follows.
It works fine with instance fields.
Tested in latest nightly.
using System;using System.Collections;namespace Playground;classProgram{static append List<int> list =.(1024);staticintvalue=1;publicstaticintMain(String[]args){
list.Add(2);
System.Diagnostics.Debug.WriteLine($"{value}");// Writes 2, expected 1return0;}}
The text was updated successfully, but these errors were encountered:
Creating a
static append List<T>
field with an initial capacity, overlays the memory for the static fields that follows.It works fine with instance fields.
Tested in latest nightly.
The text was updated successfully, but these errors were encountered: