You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While declaration destructuring is implemented (aka you can declare some variables where the LHS destructors the RHS value), the assignment part is not implemented
to work. It should be very similar (but different as it is acting on intermediate level rather than AST) to the assign_fields function used for the declaration kind
The implementation should be very similar to the current behaviour for assigning to a variable, however it needs to do the recursive assignment and get_property things from destructuring.
The text was updated successfully, but these errors were encountered:
* Fixes#98 & #106
* Checks `this` type in functions
* Improves destructuring API
* Specification test 200
---------
Co-authored-by: Ben <[email protected]>
While declaration destructuring is implemented (aka you can declare some variables where the LHS destructors the RHS value), the assignment part is not implemented
ezno/checker/src/context/environment.rs
Lines 412 to 413 in 7eb3a31
For
to work. It should be very similar (but different as it is acting on intermediate level rather than AST) to the
assign_fields
function used for the declaration kindezno/checker/src/synthesis/variables.rs
Line 198 in 7eb3a31
The implementation should be very similar to the current behaviour for assigning to a variable, however it needs to do the recursive assignment and
get_property
things from destructuring.The text was updated successfully, but these errors were encountered: