mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
aliased.ts(4,5): error TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.
|
|
shadowed.ts(6,5): error TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.
|
|
|
|
|
|
==== global.ts (0 errors) ====
|
|
export const globalSymbol = {
|
|
[Symbol.iterator]: 1,
|
|
};
|
|
|
|
==== shadowed.ts (1 errors) ====
|
|
const Symbol = {
|
|
iterator: "iterator",
|
|
};
|
|
|
|
export const shadowedSymbol = {
|
|
[Symbol.iterator]: 1,
|
|
~~~~~~~~~~~~~~~~~
|
|
!!! error TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.
|
|
!!! related TS9027 shadowed.ts:5:14: Add a type annotation to the variable shadowedSymbol.
|
|
};
|
|
|
|
==== symbols.ts (0 errors) ====
|
|
export const symbolValue = {
|
|
iterator: "iterator",
|
|
};
|
|
|
|
==== aliased.ts (1 errors) ====
|
|
import { symbolValue as Symbol } from "./symbols.js";
|
|
|
|
export const aliasedSymbol = {
|
|
[Symbol.iterator]: 1,
|
|
~~~~~~~~~~~~~~~~~
|
|
!!! error TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.
|
|
!!! related TS9027 aliased.ts:3:14: Add a type annotation to the variable aliasedSymbol.
|
|
};
|
|
|