dillon1000/react

Commit

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.
Browse files
Changed paths5 files
First-parent comparison
M compiler/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…