Added struct lifetime test
This commit is contained in:
@ -39,6 +39,9 @@ func (f *Function) CompileAssign(node *ast.Assign) error {
|
||||
case *eval.Register:
|
||||
f.Execute(operation, leftValue.Register, right)
|
||||
case *eval.Memory:
|
||||
// TODO: Reservation needs to be canceled on defer
|
||||
f.CurrentScope().Reserve(leftValue.Memory.Base)
|
||||
|
||||
if operation.Kind == token.Assign {
|
||||
rightValue, err := f.Evaluate(right)
|
||||
|
||||
|
Reference in New Issue
Block a user