TypeScript/tests/cases/compiler/indexSignatureWithInitializer.ts

8 lines
140 B
TypeScript
Raw Normal View History

2015-01-13 19:30:32 +01:00
// These used to be indexers, now they are computed properties
2014-07-13 01:04:16 +02:00
interface I {
[x = '']: string;
}
class C {
[x = 0]: string
}