Records won't warn about an unimplemented abstract ToString #76554
Closed
Description
opened on Dec 23, 2024
Version Used: 98ea496
Steps to Reproduce:
abstract class ClassBase
{
public abstract override string ToString();
sealed class Class : ClassBase; // error
}
abstract record RecordBase
{
public abstract override string ToString();
sealed record Record : RecordBase; // ok (error expected)
}
Expected Behavior: error CS0534: 'RecordBase.Record' does not implement inherited abstract member 'RecordBase.ToString()'
Actual Behavior: there's no error on the record declaration.
Activity