2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/unusedImportDeclaration_testerA.ts ===
|
|
|
|
import B = require("unusedImportDeclaration_testerB");
|
2014-08-28 21:40:58 +02:00
|
|
|
>B : typeof B
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var thingy: B = {
|
2014-08-25 19:36:12 +02:00
|
|
|
>thingy : B
|
|
|
|
>B : B
|
2014-08-22 03:39:46 +02:00
|
|
|
>{ me: "A"} : { me: string; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
me: "A"
|
|
|
|
>me : string
|
|
|
|
|
|
|
|
};
|
|
|
|
declare function foo(a: string): void;
|
2014-08-28 21:52:44 +02:00
|
|
|
>foo : (a: string) => void
|
2014-08-15 23:33:16 +02:00
|
|
|
>a : string
|
|
|
|
|
|
|
|
foo("IN " + thingy.me + "!");
|
|
|
|
>foo("IN " + thingy.me + "!") : void
|
2014-08-28 21:52:44 +02:00
|
|
|
>foo : (a: string) => void
|
2014-08-15 23:33:16 +02:00
|
|
|
>"IN " + thingy.me + "!" : string
|
|
|
|
>"IN " + thingy.me : string
|
|
|
|
>thingy.me : string
|
2014-08-25 19:36:12 +02:00
|
|
|
>thingy : B
|
2014-08-15 23:33:16 +02:00
|
|
|
>me : string
|
|
|
|
|
|
|
|
=== tests/cases/compiler/unusedImportDeclaration_testerB.ts ===
|
|
|
|
class TesterB {
|
|
|
|
>TesterB : TesterB
|
|
|
|
|
|
|
|
me: string;
|
|
|
|
>me : string
|
|
|
|
}
|
|
|
|
export = TesterB;
|
|
|
|
>TesterB : TesterB
|
|
|
|
|