|
| 1 | +=== tests/cases/compiler/a.ts === |
| 2 | +import require from "./b" |
| 3 | +>require : Symbol(require, Decl(a.ts, 0, 6)) |
| 4 | + |
| 5 | +require("arg"); |
| 6 | +>require : Symbol(require, Decl(a.ts, 0, 6)) |
| 7 | + |
| 8 | +import exports from "./c" |
| 9 | +>exports : Symbol(exports, Decl(a.ts, 3, 6)) |
| 10 | + |
| 11 | +var x = exports + 2; |
| 12 | +>x : Symbol(x, Decl(a.ts, 4, 3)) |
| 13 | +>exports : Symbol(exports, Decl(a.ts, 3, 6)) |
| 14 | + |
| 15 | +=== tests/cases/compiler/b.ts === |
| 16 | + |
| 17 | +export default function require(s: string): void { |
| 18 | +>require : Symbol(require, Decl(b.ts, 0, 0)) |
| 19 | +>s : Symbol(s, Decl(b.ts, 1, 32)) |
| 20 | +} |
| 21 | + |
| 22 | +=== tests/cases/compiler/c.ts === |
| 23 | +export const exports = 0; |
| 24 | +>exports : Symbol(exports, Decl(c.ts, 0, 12)) |
| 25 | + |
| 26 | +export default exports; |
| 27 | +>exports : Symbol(exports, Decl(c.ts, 0, 12)) |
| 28 | + |
0 commit comments