Beef icon indicating copy to clipboard operation
Beef copied to clipboard

[Crash] Mixin hiding interface member causes IDE to crash on build

Open kallisto56 opened this issue 3 years ago • 0 comments

Hi there,

Mixin Object.Dispose makes IDE think that DisposableFoo has defined Dispose. IDE crashes on build. If DisposableFoo.Dispose is defined, then everything builds and runs perfectly fine.

crash-dump: disposable-foo.zip

namespace BugTestProject
{
	using System;

	public class DisposableFoo : IDisposable
	{
		/*public void Dispose() {}*/
	}

	public class Program
	{
		static void Main ()
		{
			var foo = scope DisposableFoo();
			foo.Dispose!();
		}
	}
}

namespace System
{
	extension Object
	{
		public mixin Dispose () {}
	}
}

kallisto56 avatar Nov 06 '22 09:11 kallisto56