10 lines
No EOL
293 B
Text
10 lines
No EOL
293 B
Text
==== tests/cases/compiler/classIndexer2.ts (1 errors) ====
|
|
class C123 {
|
|
[s: string]: number;
|
|
x: number;
|
|
y: string;
|
|
~~~~~~~~~~
|
|
!!! Property 'y' of type 'string' is not assignable to string index type 'number'.
|
|
constructor() {
|
|
}
|
|
} |