Beef icon indicating copy to clipboard operation
Beef copied to clipboard

[Crash] Null-check inside specific mixin causes IDE to crash

Open kallisto56 opened this issue 3 years ago • 0 comments

Hi there, Checking if target is null inside mixin for IDisposable causes IDE to crash.

namespace System
{
	extension IDisposable
	{
		public static mixin DisposeDeleteNullify (IDisposable target)
		{
			// Uncomment to cause a crash
			/*if (target != null) {}*/
		}
	}

	extension IFormattable
	{
		public static mixin Foo (IFormattable target)
		{
			// Does not cause a crash
			if (target != null) {}
		}
	}
}

IDE crash dump: idisposable.zip

kallisto56 avatar Oct 18 '22 18:10 kallisto56