13 lines
341 B
Plaintext
13 lines
341 B
Plaintext
|
==== tests/cases/compiler/classIndexer4.ts (1 errors) ====
|
||
|
class C123 {
|
||
|
[s: string]: number;
|
||
|
constructor() {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
interface D123 extends C123 {
|
||
|
x: number;
|
||
|
y: string;
|
||
|
~~~~~~~~~~
|
||
|
!!! Property 'y' of type 'string' is not assignable to string index type 'number'.
|
||
|
}
|