TypeScript/tests/baselines/reference/classIndexer3.errors.txt
2014-09-11 16:11:08 -07:00

13 lines
351 B
Plaintext

==== tests/cases/compiler/classIndexer3.ts (1 errors) ====
class C123 {
[s: string]: number;
constructor() {
}
}
class D123 extends C123 {
x: number;
y: string;
~~~~~~~~~~
!!! error TS2411: Property 'y' of type 'string' is not assignable to string index type 'number'.
}