cadence icon indicating copy to clipboard operation
cadence copied to clipboard

Split typing from rest of type checker

Open turbolent opened this issue 2 years ago • 1 comments

Issue to be solved

Currently, the checker is implemented in a way where determining the type of an expression and other checks, like if an expression can be assigned to (which has e.g. the side-effect of reporting an error), is interleaved.

In certain cases it is necessary to determine the type of an expression without any checks, as the result is needed as an input for checking another expression.

Suggested Solution

Split typing, determining the type of an expression, from the rest of the expression checking.

turbolent avatar Jul 04 '23 22:07 turbolent

Now that we are done with major changes to the type-checker, and don't have any on-going work either, probably a good time to get started on this. I can have look and maybe draft something together, and then we can evaluate. Or do you have any specific ideas in mind?

SupunS avatar Jun 04 '24 21:06 SupunS

Affecting our ability to address security reports

j1010001 avatar Oct 10 '25 18:10 j1010001