TypeScript/tests/cases/fourslash/unusedImports4FS.ts

24 lines
493 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
// @Filename: file2.ts
2016-10-25 02:32:58 +02:00
//// [| import {Calculator, test, test2} from "./file1" |]
////
//// var x = new Calculator();
//// x.handleChar();
//// test2();
// @Filename: file1.ts
//// export class Calculator {
//// handleChar() {}
//// }
////
//// export function test() {
////
//// }
////
//// export function test2() {
////
//// }
verify.rangeAfterCodeFix(`import {Calculator, test2} from "./file1"`);