Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Hover doesn't evaluate static field

Open disarray2077 opened this issue 3 years ago • 0 comments

When debugging stops in the code below, hovering over Instance doesn't evaluate the value of Instance: image

Code:

using System;
using test8.Singleton;

namespace test8.Singleton
{
	public class TestSingleton
	{
		public static TestSingleton Instance;
		public int Value = 123;

		public this()
		{
			Instance = this;
		}
	}
}

namespace test8
{
	public static class Program
	{
		public static void Main()
		{
			TestSingleton s = scope .();

			TestSingleton.Instance.Value = 234;
			System.Diagnostics.Debug.Break();
		}
	}
}

Tested with: https://github.com/beefytech/Beef/commit/0907bd1f521c6702e01ce1da65445c8cb4401071

disarray2077 avatar Aug 03 '22 19:08 disarray2077