10 lines
No EOL
263 B
TypeScript
10 lines
No EOL
263 B
TypeScript
declare function D(): string; // error
|
|
|
|
declare class D { constructor (value: number); } // error
|
|
|
|
var s1: string = D(); // OK
|
|
|
|
var s2: string = (new D(1))();
|
|
|
|
declare class C { constructor(value: number); }
|
|
(new C(1))(); // Error for calling an instance
|