65af685b49
* Fix #19959 and #19958: Remove un-localizable messages * Update message * Reorder error messages * Fix https://github.com/Microsoft/TypeScript/issues/15399: remove periods at the end of messages * Accept baselines for error code changes * accept baselines for removed periods * Update diagnostic messages
20 lines
376 B
TypeScript
20 lines
376 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @noUnusedLocals: true
|
|
////function f1 () [|{
|
|
//// for (const elem of ["a", "b", "c"]) {
|
|
//// elem;
|
|
//// var x = 20;
|
|
//// }
|
|
////}|]
|
|
////
|
|
|
|
verify.codeFix({
|
|
description: "Remove declaration for: 'x'",
|
|
newRangeContent: `{
|
|
for (const elem of ["a", "b", "c"]) {
|
|
elem;
|
|
}
|
|
}`
|
|
});
|