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
9 lines
386 B
Plaintext
9 lines
386 B
Plaintext
tests/cases/conformance/salsa/x.js(1,9): error TS2339: Property 'fn1' does not exist on type 'typeof import("tests/cases/conformance/salsa/x")'.
|
|
|
|
|
|
==== tests/cases/conformance/salsa/x.js (1 errors) ====
|
|
exports.fn1();
|
|
~~~
|
|
!!! error TS2339: Property 'fn1' does not exist on type 'typeof import("tests/cases/conformance/salsa/x")'.
|
|
exports.fn2 = Math.min;
|
|
|