From dc8ab95db591921336652dd36bfb98ca9b0c887e Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 19 Jan 2016 09:45:46 -0800 Subject: [PATCH] Chaning "read-write" to "writable" in error messages --- src/compiler/checker.ts | 6 +++--- src/compiler/diagnosticMessages.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index cd922475d45..72a0c71178f 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -5641,7 +5641,7 @@ namespace ts { } if (isReadonlySymbol(sourceProp) && !isReadonlySymbol(targetProp)) { if (reportErrors) { - reportError(Diagnostics.Property_0_is_read_only_in_type_1_but_read_write_in_type_2, + reportError(Diagnostics.Property_0_is_read_only_in_type_1_but_writable_in_type_2, symbolToString(targetProp), typeToString(source), typeToString(target)); } return Ternary.False; @@ -5780,7 +5780,7 @@ namespace ts { } if (sourceInfo.isReadonly && !targetInfo.isReadonly) { if (reportErrors) { - reportError(Diagnostics.Index_signature_is_read_only_in_type_0_but_read_write_in_type_1, + reportError(Diagnostics.Index_signature_is_read_only_in_type_0_but_writable_in_type_1, typeToString(source), typeToString(target)); } return Ternary.False; @@ -5826,7 +5826,7 @@ namespace ts { } if ((sourceStringInfo && sourceStringInfo.isReadonly || sourceNumberInfo && sourceNumberInfo.isReadonly) && !targetInfo.isReadonly) { if (reportErrors) { - reportError(Diagnostics.Index_signature_is_read_only_in_type_0_but_read_write_in_type_1, + reportError(Diagnostics.Index_signature_is_read_only_in_type_0_but_writable_in_type_1, typeToString(source), typeToString(target)); } return Ternary.False; diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 42455576b44..cb01650d13f 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -995,7 +995,7 @@ "category": "Error", "code": 2342 }, - "Property '{0}' is read-only in type '{1}' but read-write in type '{2}'.": { + "Property '{0}' is read-only in type '{1}' but writable in type '{2}'.": { "category": "Error", "code": 2343 }, @@ -1087,7 +1087,7 @@ "category": "Error", "code": 2365 }, - "Index signature is read-only in type '{0}' but read-write in type '{1}'.": { + "Index signature is read-only in type '{0}' but writable in type '{1}'.": { "category": "Error", "code": 2366 },