37 lines
663 B
TypeScript
37 lines
663 B
TypeScript
|
//// [tests/cases/compiler/unusedImports2.ts] ////
|
||
|
|
||
|
//// [file1.ts]
|
||
|
|
||
|
export class Calculator {
|
||
|
handleChar() {}
|
||
|
}
|
||
|
|
||
|
export function test() {
|
||
|
|
||
|
}
|
||
|
|
||
|
//// [file2.ts]
|
||
|
import {Calculator} from "./file1"
|
||
|
import {test} from "./file1"
|
||
|
|
||
|
var x = new Calculator();
|
||
|
x.handleChar();
|
||
|
|
||
|
//// [file1.js]
|
||
|
"use strict";
|
||
|
var Calculator = (function () {
|
||
|
function Calculator() {
|
||
|
}
|
||
|
Calculator.prototype.handleChar = function () { };
|
||
|
return Calculator;
|
||
|
}());
|
||
|
exports.Calculator = Calculator;
|
||
|
function test() {
|
||
|
}
|
||
|
exports.test = test;
|
||
|
//// [file2.js]
|
||
|
"use strict";
|
||
|
var file1_1 = require("./file1");
|
||
|
var x = new file1_1.Calculator();
|
||
|
x.handleChar();
|