TypeScript/tests/baselines/reference/genericArrayExtenstions.errors.txt

16 lines
951 B
Plaintext
Raw Normal View History

tests/cases/compiler/genericArrayExtenstions.ts(1,22): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
tests/cases/compiler/genericArrayExtenstions.ts(1,22): error TS2420: Class 'ObservableArray<T>' incorrectly implements interface 'T[]'.
Property 'length' is missing in type 'ObservableArray<T>'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/genericArrayExtenstions.ts (2 errors) ====
export declare class ObservableArray<T> implements Array<T> { // MS.Entertainment.ObservableArray
~~~~~~~~~~~~~~~
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
2014-07-13 01:04:16 +02:00
~~~~~~~~~~~~~~~
!!! error TS2420: Class 'ObservableArray<T>' incorrectly implements interface 'T[]'.
!!! error TS2420: Property 'length' is missing in type 'ObservableArray<T>'.
2014-07-13 01:04:16 +02:00
concat<U extends T[]>(...items: U[]): T[];
concat(...items: T[]): T[];
}