From d3c98155266cf5257600d3d2df8c31e5df1b66e2 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Tue, 8 Dec 2015 17:37:38 -0800 Subject: [PATCH] Improve comment --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 53900f90ffa..ceadceab20f 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -15969,7 +15969,7 @@ namespace ts { return grammarErrorOnNode((prop).equalsToken, Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment); } - // Modifiers cannot appear in property assignments + // Modifiers are never allowed on properties except for 'async' on a method declaration forEach(prop.modifiers, mod => { if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) { grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod));