dillon1000/react

Commit

[typer] Track return type in FunctionType

Rather than having a special FunctionCall type that deduces the return type, 
change the FunctionType to include the return type. 

This return type is inferred as part of unification.
Browse files
Changed paths3 files
First-parent comparison
M compiler/forget/src/HIR/ObjectShape.ts ModifiedM compiler/forget/src/HIR/Types.ts ModifiedM compiler/forget/src/TypeInference/InferTypes.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…