22 lines
336 B
TypeScript
22 lines
336 B
TypeScript
|
//@noUnusedLocals:true
|
||
|
//@noUnusedParameters:true
|
||
|
|
||
|
// @Filename: file1.ts
|
||
|
export class Calculator {
|
||
|
handleChar() {}
|
||
|
}
|
||
|
|
||
|
export function test() {
|
||
|
|
||
|
}
|
||
|
|
||
|
export function test2() {
|
||
|
|
||
|
}
|
||
|
|
||
|
// @Filename: file2.ts
|
||
|
import {Calculator as calc, test as t1, test2 as t2} from "./file1"
|
||
|
|
||
|
var x = new calc();
|
||
|
x.handleChar();
|
||
|
t1();
|