11 lines
No EOL
290 B
Text
11 lines
No EOL
290 B
Text
==== tests/cases/compiler/extendGenericArray2.ts (1 errors) ====
|
|
interface IFoo<T> {
|
|
x: T;
|
|
}
|
|
|
|
interface Array<T> extends IFoo<T> { }
|
|
|
|
var arr: string[] = [];
|
|
var y: number = arr.x;
|
|
~
|
|
!!! Type 'string' is not assignable to type 'number'. |