TypeScript/tests/cases/fourslash/unusedImports2FS.ts

20 lines
483 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
// @Filename: file2.ts
2017-02-09 00:44:54 +01:00
//// [|import {test} from "./file1"
//// import {Calculator} from "./file1"|]
//// var x = new Calculator();
//// x.handleChar();
// @Filename: file1.ts
//// export class Calculator {
//// handleChar() {}
//// }
//// export function test() {
////
//// }
2017-02-15 02:27:07 +01:00
verify.rangeAfterCodeFix(`import {Calculator} from "./file1"`, /*includeWhiteSpace*/ true, /*errorCode*/ undefined);