13 lines
449 B
Plaintext
13 lines
449 B
Plaintext
tests/cases/compiler/classIndexer2.ts(4,5): error TS2411: Property 'y' of type 'string' is not assignable to string index type 'number'.
|
|
|
|
|
|
==== tests/cases/compiler/classIndexer2.ts (1 errors) ====
|
|
class C123 {
|
|
[s: string]: number;
|
|
x: number;
|
|
y: string;
|
|
~~~~~~~~~~
|
|
!!! error TS2411: Property 'y' of type 'string' is not assignable to string index type 'number'.
|
|
constructor() {
|
|
}
|
|
} |