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.

Reply via email to