jakt icon indicating copy to clipboard operation
jakt copied to clipboard

typechecker+tests: Ensure all function types are known before typechecking declarations

Open cg-jl opened this issue 2 years ago • 5 comments

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.

cg-jl avatar May 28 '22 11:05 cg-jl

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.

BuggieBot avatar May 28 '22 14:05 BuggieBot

Please update the tests to follow the new format from 99a337b5734ac8f8c74ecdcb545dfe9cabde956d

mustafaquraish avatar May 29 '22 12:05 mustafaquraish

I reset the pull request so I can rework it from the beginning.

cg-jl avatar May 29 '22 22:05 cg-jl

I've made merging this into a git nightmare. I'll start again, basing my branch off main.

cg-jl avatar Jun 04 '22 17:06 cg-jl

Merged with module system.

cg-jl avatar Jun 05 '22 18:06 cg-jl

Closing because Rust based compiler was discontinued, and typecheck passes are different in selfhost.

cg-jl avatar Jul 31 '22 11:07 cg-jl