|
| 1 | +//// [tests/cases/conformance/internalModules/moduleDeclarations/reExportAliasMakesInstantiated.ts] //// |
| 2 | + |
| 3 | +=== reExportAliasMakesInstantiated.ts === |
| 4 | +declare module pack1 { |
| 5 | +>pack1 : Symbol(pack1, Decl(reExportAliasMakesInstantiated.ts, 0, 0)) |
| 6 | + |
| 7 | + const test1: string; |
| 8 | +>test1 : Symbol(test1, Decl(reExportAliasMakesInstantiated.ts, 1, 7)) |
| 9 | + |
| 10 | + export { test1 }; |
| 11 | +>test1 : Symbol(test1, Decl(reExportAliasMakesInstantiated.ts, 2, 10)) |
| 12 | +} |
| 13 | +declare module pack2 { |
| 14 | +>pack2 : Symbol(pack2, Decl(reExportAliasMakesInstantiated.ts, 3, 1)) |
| 15 | + |
| 16 | + import test1 = pack1.test1; |
| 17 | +>test1 : Symbol(test1, Decl(reExportAliasMakesInstantiated.ts, 4, 22)) |
| 18 | +>pack1 : Symbol(pack1, Decl(reExportAliasMakesInstantiated.ts, 0, 0)) |
| 19 | +>test1 : Symbol(pack1.test1, Decl(reExportAliasMakesInstantiated.ts, 2, 10)) |
| 20 | + |
| 21 | + export { test1 }; |
| 22 | +>test1 : Symbol(test1, Decl(reExportAliasMakesInstantiated.ts, 6, 10)) |
| 23 | +} |
| 24 | +export import test1 = pack2.test1; |
| 25 | +>test1 : Symbol(test1, Decl(reExportAliasMakesInstantiated.ts, 7, 1)) |
| 26 | +>pack2 : Symbol(pack2, Decl(reExportAliasMakesInstantiated.ts, 3, 1)) |
| 27 | +>test1 : Symbol(pack2.test1, Decl(reExportAliasMakesInstantiated.ts, 6, 10)) |
| 28 | + |
| 29 | +declare module mod1 { |
| 30 | +>mod1 : Symbol(mod1, Decl(reExportAliasMakesInstantiated.ts, 8, 34)) |
| 31 | + |
| 32 | + type test1 = string; |
| 33 | +>test1 : Symbol(test1, Decl(reExportAliasMakesInstantiated.ts, 10, 21)) |
| 34 | + |
| 35 | + export { test1 }; |
| 36 | +>test1 : Symbol(test1, Decl(reExportAliasMakesInstantiated.ts, 12, 10)) |
| 37 | +} |
| 38 | +declare module mod2 { |
| 39 | +>mod2 : Symbol(mod2, Decl(reExportAliasMakesInstantiated.ts, 13, 1)) |
| 40 | + |
| 41 | + import test1 = mod1.test1; |
| 42 | +>test1 : Symbol(test1, Decl(reExportAliasMakesInstantiated.ts, 14, 21)) |
| 43 | +>mod1 : Symbol(mod1, Decl(reExportAliasMakesInstantiated.ts, 8, 34)) |
| 44 | +>test1 : Symbol(mod1.test1, Decl(reExportAliasMakesInstantiated.ts, 12, 10)) |
| 45 | + |
| 46 | + export { test1 }; |
| 47 | +>test1 : Symbol(test1, Decl(reExportAliasMakesInstantiated.ts, 16, 10)) |
| 48 | +} |
| 49 | +const test2 = mod2; // Possible false positive instantiation, but ok |
| 50 | +>test2 : Symbol(test2, Decl(reExportAliasMakesInstantiated.ts, 18, 5)) |
| 51 | +>mod2 : Symbol(mod2, Decl(reExportAliasMakesInstantiated.ts, 13, 1)) |
| 52 | + |
0 commit comments