This project is read-only.

Status of index signatures in classes

Topics: General, Language Specification
Aug 21, 2013 at 9:03 PM
According to specification, index signatures are allowed in classes. More than that, in playground they compile and other properties types are checked against them (all properties' types must be subtypes of return type of a string index signature). But my issues were closed with comment "Classes cannot declare index signatures". Do I understand it right that they would be removed in the next versions of the specification and compiler?
Aug 21, 2013 at 10:49 PM
I've reactivated your issues, you're right, they should work. For a long time they were not allowed which was the source of confusion. For reference, you can always re-open the issue itself with comments and we will see it.
Aug 21, 2013 at 10:49 PM
I missed the memo on that one. Please re-open those issues.