13

Typing ref readonly at the wrong places will crash VS

 3 years ago
source link: https://developercommunity.visualstudio.com/content/problem/168027/typing-ref-readonly-at-the-wrong-places-will-crash.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Typing ref readonly at the wrong places will crash VS

Alois Kraus reported Dec 14, 2017 at 03:13 PM

Declare

readonly struct FastPoint
{
public int X { ref readonly get; private set; }
public int Y { get; private set; }
}

and watch VS, Intellisense and build crash with 18 GB of memory before it goes down on my 32 GB machine.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK