c7bac6f2e6
e350c357
(#40228) introduced a subtle bug: it switched the flags to an
alias, dropping `SymbolFlags.Property` --- and that makes
`symbolIsValue()` get to the `resolveAlias(symbol)` call, which leads to
`getPropertyOfType()` with`resolved.callSignatures`+`constructSignatures`
being `undefined`. So initialize them in `setStructuredTypeMembers`
before calling `getNamedMembers()`.
Fixes #42350
8 lines
134 B
TypeScript
8 lines
134 B
TypeScript
// @noEmit: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @filename: x.js
|
|
const Foo = { min: 3 };
|
|
exports.fn1();
|
|
exports.fn2 = Foo.min;
|