誰かがTypeScriptでコンストラクタオーバーロードを行っていますか?言語仕様(v 0.8)の64ページには、コンストラクターのオーバーロードを記述したステートメントがありますが、サンプルコードはありません。
私は今、本当に基本的なクラス宣言を試しています。それはこのように見えますが、
interface IBox {    
    x : number;
    y : number;
    height : number;
    width : number;
}
class Box {
    public x: number;
    public y: number;
    public height: number;
    public width: number;
    constructor(obj: IBox) {    
        this.x = obj.x;
        this.y = obj.y;
        this.height = obj.height;
        this.width = obj.width;
    }   
    constructor() {
        this.x = 0;
        this.y = 0;
        this.width = 0;
        this.height = 0;
    }
}
tsc BoxSample.tsを実行すると、重複するコンストラクタ定義がスローされます。これは明らかです。どんな助けもありがとうございます。