* Eliminate well-known symbols in the checker: 2021 edition * Actually update the lib text to say unique symbol, too (this is unneeded with compat code in place, but this makes goto-def make more sense) * Add test showing mismatched symbol constructor type interop * Add more test cases for some other related issues this fixes * Revert computed name change * Style comments
15 lines
432 B
Text
15 lines
432 B
Text
=== tests/cases/conformance/es6/Symbols/symbolType2.ts ===
|
|
Symbol.isConcatSpreadable in {};
|
|
>Symbol.isConcatSpreadable in {} : boolean
|
|
>Symbol.isConcatSpreadable : unique symbol
|
|
>Symbol : SymbolConstructor
|
|
>isConcatSpreadable : unique symbol
|
|
>{} : {}
|
|
|
|
"" in Symbol.toPrimitive;
|
|
>"" in Symbol.toPrimitive : boolean
|
|
>"" : ""
|
|
>Symbol.toPrimitive : unique symbol
|
|
>Symbol : SymbolConstructor
|
|
>toPrimitive : unique symbol
|
|
|