mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
40 lines
695 B
TypeScript
40 lines
695 B
TypeScript
//// [tests/cases/compiler/isolatedDeclarationsShadowedSymbolComputedName.ts] ////
|
|
|
|
//// [global.ts]
|
|
export const globalSymbol = {
|
|
[Symbol.iterator]: 1,
|
|
};
|
|
|
|
//// [shadowed.ts]
|
|
const Symbol = {
|
|
iterator: "iterator",
|
|
};
|
|
|
|
export const shadowedSymbol = {
|
|
[Symbol.iterator]: 1,
|
|
};
|
|
|
|
//// [symbols.ts]
|
|
export const symbolValue = {
|
|
iterator: "iterator",
|
|
};
|
|
|
|
//// [aliased.ts]
|
|
import { symbolValue as Symbol } from "./symbols.js";
|
|
|
|
export const aliasedSymbol = {
|
|
[Symbol.iterator]: 1,
|
|
};
|
|
|
|
|
|
|
|
|
|
//// [global.d.ts]
|
|
export declare const globalSymbol: {
|
|
[Symbol.iterator]: number;
|
|
};
|
|
//// [symbols.d.ts]
|
|
export declare const symbolValue: {
|
|
iterator: string;
|
|
};
|