Error: class myClass.myClass() is used as a type
Daniel Kozak
kozzi11 at gmail.com
Sun Jan 27 12:13:04 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 ?
class myClass () {
this() {
}
};
should be
class myClass {
this() {
}
}
More information about the Digitalmars-d
mailing list