Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify typing of builtin functions (#8329)
- Implement some simple resolving of polymorphic return types when typing function calls, to replace the old hack of manually having to patch the return type of many builtin functions. - Remove special handling of `diagonal` and `previous`, they can now be typed based on their definitions in ModelicaBuiltin. - Simplify handling of `cardinality`, it can now be typed normally and only needs some checks that it's used in the correct context. - Use a custom polymorphic type `__Any` to reduce the need for unboxing builtin functions. - Add tests for some builtin functions that were lacking tests.
- Loading branch information
Showing
20 changed files
with
368 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.