Beef icon indicating copy to clipboard operation
Beef copied to clipboard

[BUG] Debugger doesn't show variable contents from base type

Open Fusioon opened this issue 2 years ago • 0 comments

Debugger doesn't show variable contents if the allocated type is generic with const constrain

Debugger watch window: image

Code to reproduce:

class Normal
{
	public String value = "normal";
}

class GenericVal<CValue>
	where CValue : const bool
{
	public String value = "Generic";
}

class GenericType<T> : this(T value)
{

}

static void Main()
{
	Normal norm = scope .();
	Object baseNorm = norm;

	GenericType<int> genericType = scope .(10);
	Object baseGenType = genericType;

	GenericVal<false> genericVal = scope .();
	Object baseGenVal = genericVal;

	System.Diagnostics.Debug.SafeBreak();
}

Tested with: Nightly 05/08/2023

Fusioon avatar May 10 '23 17:05 Fusioon