mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
712 B
Plaintext
30 lines
712 B
Plaintext
//// [tests/cases/compiler/es6UseOfTopLevelRequire.ts] ////
|
|
|
|
=== a.ts ===
|
|
import require from "./b"
|
|
>require : Symbol(require, Decl(a.ts, 0, 6))
|
|
|
|
require("arg");
|
|
>require : Symbol(require, Decl(a.ts, 0, 6))
|
|
|
|
import exports from "./c"
|
|
>exports : Symbol(exports, Decl(a.ts, 3, 6))
|
|
|
|
var x = exports + 2;
|
|
>x : Symbol(x, Decl(a.ts, 4, 3))
|
|
>exports : Symbol(exports, Decl(a.ts, 3, 6))
|
|
|
|
=== b.ts ===
|
|
export default function require(s: string): void {
|
|
>require : Symbol(require, Decl(b.ts, 0, 0))
|
|
>s : Symbol(s, Decl(b.ts, 0, 32))
|
|
}
|
|
|
|
=== c.ts ===
|
|
export const exports = 0;
|
|
>exports : Symbol(exports, Decl(c.ts, 0, 12))
|
|
|
|
export default exports;
|
|
>exports : Symbol(exports, Decl(c.ts, 0, 12))
|
|
|