Почему реализации членов интерфейса по умолчанию в C # 8 сообщают об ошибке?
public interface Logger
{
void Info(string message);
void Error(string message);
// C#8 Default implementations of interface
void Warn(string message)
{
// "interface method cannot declare a body" error message
}
}
а также
.NET Core 3.0 настроен, как показано на скриншоте.