Skip to content

Fix model typechecking #18

@Alex23087

Description

@Alex23087

Currently, when typechecking a model, the checker adds the members to a partial model type in syntactic order. This means that sometimes the checker is unable to infer some types, and that the order in which members are defined matters.

This should be changed to check models in two passes:

  1. partially check all declaration, doing type inference, and build the complete model type
  2. check function and lambda declarations to make sure that they agree with the type found in the previous step

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions