Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Unresolved external symbol

Open disarray2077 opened this issue 4 years ago • 0 comments

To reproduce this error, create a project of any type and then create a library containing the following file (the file name doesn't matter), if you don't add the library as a dependency in any project (this actually may not matter but when I tested this was a safe way to reproduce the issue), the error will happen while building the workspace.

static
{
	delegate void Action<T>(T value);
}

namespace System.Collections
{
	public extension List<T>
		where T : delete
	{
		private static new Action<T> getDefaultDeleter()
		{
			return new (t) => { delete t; };
		}
	}

	public extension List<T>
	{
		public static Action<T> mDeleter = getDefaultDeleter() ~ delete _;

		public static Action<T> Deleter
		{
			get => mDeleter;
			set
			{
				delete mDeleter;
				mDeleter = value;
			}
		}

		private static Action<T> getDefaultDeleter()
		{
			return null;
		}
	}
}

Tested with: c105656

disarray2077 avatar Jul 08 '21 01:07 disarray2077