dillon1000/react
Commit
Browse files InferReferenceEffects uses function types for CallExpression
Updates the InferReferenceEffects logic for CallExpression to work similarly to MethodCall, where we take into account the function signature (if present) when inferring the effects and return kind.
Changed paths5 files
First-parent comparisoncompiler/forget/src/HIR/HIR.ts ModifiedM compiler/forget/src/Inference/InferReferenceEffects.ts ModifiedM compiler/forget/src/__tests__/fixtures/compiler/globals-Boolean.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/compiler/globals-Number.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/compiler/globals-String.expect.md ModifiedPatch
Files changed
Rendering syntax-highlighted changes…