sixten icon indicating copy to clipboard operation
sixten copied to clipboard

Sanity typecheck the abstract syntax

Open ollef opened this issue 8 years ago • 2 comments

After any pass that produces abstract syntax, right now typechecking and simplification, we should sanity typecheck it to find compiler bugs. This could perhaps only be done when using some command-line flag.

ollef avatar Oct 19 '17 20:10 ollef

What properties should be checked?

molysgaard avatar Mar 05 '18 19:03 molysgaard

It would be checking that the types match where they should, e.g. in function applications and case expression. It's sort of like the "main" typechecker, but since it's running on the abstract syntax where everything is explicitly typed it should be quite a bit less complicated.

ollef avatar Mar 05 '18 19:03 ollef