destructuring of less fields than are in struct throws an error from interpreter #968
Labels
bug
Something isn't working or isn't right
scope: const-eval
The constant and partial evaluation optimization mechanisms
Milestone
Curiosly, that depends. The following example (taken from docs):
Will report an error: "Cannot evaluate expression to a constant: destructuring assignment expected 2 fields, but got 1".
But if one would place the same destructuring statement in the
receive()
function, there would be no such error:Originally posted by @novusnota in #964 (comment)
The text was updated successfully, but these errors were encountered: