jakt
jakt copied to clipboard
typechecker+tests: Ensure all function types are known before typechecking declarations
Fixes #380 (again). PR #388 introduced a bug where it would use the function's parent scope when the function was not generic, but now it was reverted and the typechecker does a separate pass after registering functions to infer types of fat arrow functions that don't have their type stated explicitly in the source code.
Hello!
One or more of the commit messages in this PR do not match the Jakt code submission policy, please check the lint_commits
CI job for more details on which commits were flagged and why.
Please do not close this PR and open another, instead modify your commit message(s) with git commit --amend and force push those changes to update this PR.
Please update the tests to follow the new format from 99a337b5734ac8f8c74ecdcb545dfe9cabde956d
I reset the pull request so I can rework it from the beginning.
I've made merging this into a git nightmare. I'll start again, basing my branch off main
.
Merged with module system.
Closing because Rust based compiler was discontinued, and typecheck passes are different in selfhost.