25 lines
584 B
Text
25 lines
584 B
Text
|
tests/cases/compiler/file2.ts(1,27): error TS6133: 'test2' is declared but never used.
|
||
|
|
||
|
|
||
|
==== tests/cases/compiler/file1.ts (0 errors) ====
|
||
|
|
||
|
export class Calculator {
|
||
|
handleChar() {}
|
||
|
}
|
||
|
|
||
|
export function test() {
|
||
|
|
||
|
}
|
||
|
|
||
|
export function test2() {
|
||
|
|
||
|
}
|
||
|
|
||
|
==== tests/cases/compiler/file2.ts (1 errors) ====
|
||
|
import {Calculator, test, test2} from "./file1"
|
||
|
~~~~~
|
||
|
!!! error TS6133: 'test2' is declared but never used.
|
||
|
|
||
|
var x = new Calculator();
|
||
|
x.handleChar();
|
||
|
test();
|