Error: class myClass.myClass() is used as a type
Dicebot
m.strashun at gmail.com
Sun Jan 27 12:04:15 PST 2013
On Sunday, 27 January 2013 at 19:55:07 UTC, rsk82 wrote:
> this is my module:
>
> module myClass;
>
> class myClass () {
> this() {
>
> }
> };
>
> and main app:
>
> import myClass;
>
> int main() {
> myClass my_instance = new myClass();
> return 0;
> }
>
> What's wrong here ?
new MyClass.MyClass(), I suppose. Despite import is public,
module symbol has higher priority in name resolution.
More information about the Digitalmars-d
mailing list