unique symbol
s from the global SymbolConstructor
widen way too eagerly
#53276
Labels
Bug
A bug in TypeScript
Domain: Literal Types
Unit types including string literal types, numeric literal types, Boolean literals, null, undefined
Milestone
Given
we currently issue a
Element implicitly has an 'any' type because expression of type 'symbol' can't be used to index type 'F'.(7053)
error on the access.There should be no errors, as with
since
Symbol.toStringTag
is aunique symbol
just like whatSymbol()
makes.The text was updated successfully, but these errors were encountered: