tests/cases/compiler/callOnInstance.ts(1,18): error TS2300: Duplicate identifier 'D'.
tests/cases/compiler/callOnInstance.ts(3,15): error TS2300: Duplicate identifier 'D'.
tests/cases/compiler/callOnInstance.ts(7,25): error TS2554: Expected 0 arguments, but got 1.
tests/cases/compiler/callOnInstance.ts(10,1): error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'C' has no compatible call signatures.


==== tests/cases/compiler/callOnInstance.ts (4 errors) ====
    declare function D(): string; // error
                     ~
!!! error TS2300: Duplicate identifier 'D'.
    
    declare class D { constructor (value: number); } // error
                  ~
!!! error TS2300: Duplicate identifier 'D'.
    
    var s1: string = D(); // OK
    
    var s2: string = (new D(1))();
                            ~
!!! error TS2554: Expected 0 arguments, but got 1.
    
    declare class C { constructor(value: number); }
    (new C(1))(); // Error for calling an instance
    ~~~~~~~~~~~~
!!! error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'C' has no compatible call signatures.