6e77e2e810
Also got rid of the 'terminalMessages' concept.
9 lines
No EOL
989 B
Text
9 lines
No EOL
989 B
Text
tests/cases/compiler/redefineArray.ts(1,1): error TS2323: Type '(n: number, s: string) => number' is not assignable to type '{ (arrayLength?: number): any[]; <T>(arrayLength: number): T[]; <T>(...items: T[]): T[]; new (arrayLength?: number): any[]; new <T>(arrayLength: number): T[]; new <T>(...items: T[]): T[]; isArray(arg: any): boolean; prototype: any[]; }'.
|
|
Property 'isArray' is missing in type '(n: number, s: string) => number'.
|
|
|
|
|
|
==== tests/cases/compiler/redefineArray.ts (1 errors) ====
|
|
Array = function (n:number, s:string) {return n;};
|
|
~~~~~
|
|
!!! error TS2323: Type '(n: number, s: string) => number' is not assignable to type '{ (arrayLength?: number): any[]; <T>(arrayLength: number): T[]; <T>(...items: T[]): T[]; new (arrayLength?: number): any[]; new <T>(arrayLength: number): T[]; new <T>(...items: T[]): T[]; isArray(arg: any): boolean; prototype: any[]; }'.
|
|
!!! error TS2323: Property 'isArray' is missing in type '(n: number, s: string) => number'. |