TypeScript/tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts
2015-01-19 16:36:50 -08:00

15 lines
241 B
TypeScript

interface I {
// Used to be indexer, now it is a computed property
[x]: string;
[x: string];
}
class C {
// Used to be indexer, now it is a computed property
[x]: string
}
class C2 {
[x: string]
}