import `Class` is used as a type

H. S. Teoh hsteoh at
Sat Sep 10 17:20:29 UTC 2022

On Sat, Sep 10, 2022 at 04:59:50PM +0000, Injeckt via Digitalmars-d-learn wrote:
> I'm trying use classes in my project, but when i'm try inherit class,
> I get error:
>         Error: import `Server.Console` is used as a type

Don't name the module the same thing as the class.  Rename it to, say,
`console`, so that it wouldn't clash with the class name `Console`.


IBM = I Blame Microsoft

More information about the Digitalmars-d-learn mailing list