mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
450 B
Plaintext
16 lines
450 B
Plaintext
classIndexer4.ts(9,5): error TS2411: Property 'y' of type 'string' is not assignable to 'string' index type 'number'.
|
|
|
|
|
|
==== classIndexer4.ts (1 errors) ====
|
|
class C123 {
|
|
[s: string]: number;
|
|
constructor() {
|
|
}
|
|
}
|
|
|
|
interface D123 extends C123 {
|
|
x: number;
|
|
y: string;
|
|
~
|
|
!!! error TS2411: Property 'y' of type 'string' is not assignable to 'string' index type 'number'.
|
|
} |