TypeScript/tests/baselines/reference/unusedImportDeclaration.types

37 lines
726 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/unusedImportDeclaration_testerA.ts ===
import B = require("unusedImportDeclaration_testerB");
>B : typeof TesterB
var thingy: B = {
>thingy : TesterB
>B : TesterB
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-22 03:39:46 +02:00
>foo : typeof foo
2014-08-15 23:33:16 +02:00
>a : string
foo("IN " + thingy.me + "!");
>foo("IN " + thingy.me + "!") : void
2014-08-22 03:39:46 +02:00
>foo : typeof foo
2014-08-15 23:33:16 +02:00
>"IN " + thingy.me + "!" : string
>"IN " + thingy.me : string
>thingy.me : string
>thingy : TesterB
>me : string
=== tests/cases/compiler/unusedImportDeclaration_testerB.ts ===
class TesterB {
>TesterB : TesterB
me: string;
>me : string
}
export = TesterB;
>TesterB : TesterB