Clarify comment

This commit is contained in:
Nathan Yee 2015-11-20 13:33:58 -08:00
parent 40a2a2584d
commit 5b3d299412

View file

@ -2248,8 +2248,8 @@ namespace ts {
property.questionToken = questionToken;
property.type = parseTypeAnnotation();
// Although interfaces cannot not have initializers, we attempt to parse an initializer
// so we can report that an interface cannot have an initializer.
// Although object type properties cannot not have initializers, we attempt to parse an initializer
// so we can report that an object type property cannot have an initializer.
if (token === SyntaxKind.EqualsToken && lookAhead(() => parseNonParameterInitializer()) !== undefined) {
parseErrorAtCurrentToken(Diagnostics.An_object_type_property_cannot_have_an_initializer);
}