Files
tsgo/testdata/baselines/reference/submodule/conformance/lateBoundAssignmentDeclarationSupport1.symbols

43 lines
1.8 KiB
Plaintext

//// [tests/cases/conformance/salsa/lateBoundAssignmentDeclarationSupport1.ts] ////
=== usage.js ===
const x = require("./lateBoundAssignmentDeclarationSupport1.js");
>x : Symbol(x, Decl(usage.js, 0, 5))
>require : Symbol(require)
>"./lateBoundAssignmentDeclarationSupport1.js" : Symbol(x, Decl(lateBoundAssignmentDeclarationSupport1.js, 0, 0))
const y = x["my-fake-sym"];
>y : Symbol(y, Decl(usage.js, 1, 5))
>x : Symbol(x, Decl(usage.js, 0, 5))
const z = x[x.S];
>z : Symbol(z, Decl(usage.js, 2, 5))
>x : Symbol(x, Decl(usage.js, 0, 5))
>x.S : Symbol(x.S, Decl(lateBoundAssignmentDeclarationSupport1.js, 5, 21))
>x : Symbol(x, Decl(usage.js, 0, 5))
>S : Symbol(x.S, Decl(lateBoundAssignmentDeclarationSupport1.js, 5, 21))
=== lateBoundAssignmentDeclarationSupport1.js ===
// currently unsupported
const _sym = Symbol();
>_sym : Symbol(_sym, Decl(lateBoundAssignmentDeclarationSupport1.js, 1, 5))
>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
const _str = "my-fake-sym";
>_str : Symbol(_str, Decl(lateBoundAssignmentDeclarationSupport1.js, 2, 5))
exports[_sym] = "ok";
>exports : Symbol(exports, Decl(lateBoundAssignmentDeclarationSupport1.js, 0, 0))
>_sym : Symbol(_sym, Decl(lateBoundAssignmentDeclarationSupport1.js, 1, 5))
exports[_str] = "ok";
>exports : Symbol(exports, Decl(lateBoundAssignmentDeclarationSupport1.js, 0, 0))
>_str : Symbol(_str, Decl(lateBoundAssignmentDeclarationSupport1.js, 2, 5))
exports.S = _sym;
>exports.S : Symbol(S, Decl(lateBoundAssignmentDeclarationSupport1.js, 5, 21))
>exports : Symbol(exports, Decl(lateBoundAssignmentDeclarationSupport1.js, 0, 0))
>S : Symbol(S, Decl(lateBoundAssignmentDeclarationSupport1.js, 5, 21))
>_sym : Symbol(_sym, Decl(lateBoundAssignmentDeclarationSupport1.js, 1, 5))