TypeScript/tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts

15 lines
241 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface I {
2015-01-13 19:30:32 +01:00
// Used to be indexer, now it is a computed property
2014-07-13 01:04:16 +02:00
[x]: string;
[x: string];
}
class C {
2015-01-13 19:30:32 +01:00
// Used to be indexer, now it is a computed property
2014-07-13 01:04:16 +02:00
[x]: string
}
class C2 {
[x: string]
}