TypeScript/tests/baselines/reference/unusedImportDeclaration.types

40 lines
767 B
Plaintext
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 B
2014-08-15 23:33:16 +02:00
var thingy: B = {
>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
2015-04-13 21:36:11 +02:00
>"A" : string
2014-08-15 23:33:16 +02:00
};
declare function foo(a: string): void;
>foo : (a: string) => void
>a : string
2014-08-15 23:33:16 +02:00
foo("IN " + thingy.me + "!");
>foo("IN " + thingy.me + "!") : void
>foo : (a: string) => void
2014-08-15 23:33:16 +02:00
>"IN " + thingy.me + "!" : string
>"IN " + thingy.me : string
2015-04-13 21:36:11 +02:00
>"IN " : string
>thingy.me : string
>thingy : B
>me : string
2015-04-13 21:36:11 +02:00
>"!" : string
2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/unusedImportDeclaration_testerB.ts ===
class TesterB {
>TesterB : TesterB
2014-08-15 23:33:16 +02:00
me: string;
>me : string
2014-08-15 23:33:16 +02:00
}
export = TesterB;
>TesterB : TesterB
2014-08-15 23:33:16 +02:00