Trass3r <[email protected]> wrote:
module testObj;public interface testInterface { void someMethod(); } public class testObj { Object someCaller; this(Object caller) { someCaller = caller; } this(testInterface tI, bool xyz) { someCaller = tI; } } Shouldn't this work?Doesn't really make sense. If you cast it to Object you "loose" the interface methods.
Same way you lose methods of a subclass when you cast it to a base class. That's allowed, though. -- Simen
