Files
tsgo/testdata/baselines/reference/submodule/compiler/declarationEmitComputedPropertyNameSymbol2.errors.txt

16 lines
553 B
Plaintext

index.ts(3,14): error TS4023: Exported variable 'foo' has or is using name 'Foo' from external module "type" but cannot be named.
==== type.ts (0 errors) ====
namespace Foo {
export const sym = Symbol();
}
export type Type = { x?: { [Foo.sym]: 0 } };
==== index.ts (1 errors) ====
import { type Type } from "./type";
export const foo = { ...({} as Type) };
~~~
!!! error TS4023: Exported variable 'foo' has or is using name 'Foo' from external module "type" but cannot be named.