TypeScript/tests/baselines/reference/unusedImportDeclaration.types
2015-04-15 16:44:20 -07:00

40 lines
767 B
Plaintext

=== tests/cases/compiler/unusedImportDeclaration_testerA.ts ===
import B = require("unusedImportDeclaration_testerB");
>B : typeof B
var thingy: B = {
>thingy : B
>B : B
>{ me: "A"} : { me: string; }
me: "A"
>me : string
>"A" : string
};
declare function foo(a: string): void;
>foo : (a: string) => void
>a : string
foo("IN " + thingy.me + "!");
>foo("IN " + thingy.me + "!") : void
>foo : (a: string) => void
>"IN " + thingy.me + "!" : string
>"IN " + thingy.me : string
>"IN " : string
>thingy.me : string
>thingy : B
>me : string
>"!" : string
=== tests/cases/compiler/unusedImportDeclaration_testerB.ts ===
class TesterB {
>TesterB : TesterB
me: string;
>me : string
}
export = TesterB;
>TesterB : TesterB