import `Class` is used as a type

Injeckt vinsentlou9 at gmail.com
Sat Sep 10 17:27:01 UTC 2022


On Saturday, 10 September 2022 at 17:20:29 UTC, H. S. Teoh wrote:
> 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`.
>
>
> T

Thank you!


More information about the Digitalmars-d-learn mailing list