mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 20:37:46 -05:00
Fix comment behavior in remove unused named bindings
This commit is contained in:
12
tests/cases/fourslash/unusedImports14FS.ts
Normal file
12
tests/cases/fourslash/unusedImports14FS.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @noUnusedLocals: true
|
||||
// @Filename: file2.ts
|
||||
//// [| import /* 1 */ A /* 2 */, /* 3 */ { x } from './a'; |]
|
||||
//// console.log(A);
|
||||
|
||||
// @Filename: file1.ts
|
||||
//// export default 10;
|
||||
//// export var x = 10;
|
||||
|
||||
verify.rangeAfterCodeFix("import /* 1 */ A /* 2 */ from './a';");
|
||||
Reference in New Issue
Block a user