On 12/16/2011 09:20 PM, Andrew Wiley wrote:
Is this a bug?

```
struct SomeStruct {
        @disable this();
        this(int arg) {
        }
}

class SomeClass {
        private:
        SomeStruct _stuff;
        
        public:
        this() {
                _stuff = SomeStruct(10);
        }
}

void someFunc() {
        SomeClass obj = new SomeClass(); // Error: default construction is
disabled for type SomeClass
}
```

It doesn't seem like disabled default constructors should propagate this way.

Definitely a bug. This has been brought up before, but I think that there is no bug report yet.

Reply via email to