### π Search Terms "cannot be named", "has or is using name", "return type of exported function" ### π Version & Regression Information - This changed between versions 5.7.0 and 5.8.2 ### β― Playground Link n/a (this requires 2+ files) ### π» Code ```ts // file 1 declare const emptyObjectSymbol: unique symbol; export interface EmptyObject { [emptyObjectSymbol]?: never; } ``` ```ts // file 2 import type { EmptyObject } from 'file1'; function a() { return {} as EmptyObject; } ``` ```ts // file 3 import { a } from 'file2'; function b() { // error here return a() } ``` ### π Actual behavior `error TS4058: Return type of exported function has or is using name 'emptyObjectSymbol' from external module "file1" but cannot be named.` ### Additional information about the issue ### π Expected behavior The code compiles as expected. _No response_