Skip to main content
SIFR-CLASS-0005 belongs to the Classes and declarations diagnostic family. It means: invalid class base.

Why It Happens

The class declaration cannot be lowered into a safe Rust-backed representation. Check field initialization, methods, inheritance constraints, and constructor shape.
Use sifr --explain SIFR-CLASS-0005 locally to see the renderer’s exact message template and any machine-applicable suggestions for the compiler version you are running.

Erroneous Code

How To Fix It

Give class declarations a shape the compiler can lower: initialized fields, valid bases, unique variants, and supported field ordering.

Fixed Code

Details

See the Error Codes index for the complete catalog.