Beef
Beef copied to clipboard
Unresolved external symbol
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