Skip to content

Commit

Permalink
#286 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 14, 2021
1 parent be74dbe commit 4439494
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eo-runtime/src/main/java/org/eolang/phi/AtFree.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@ public AtFree(final Phi phi) {
}

public AtFree(final Attr attr) {
this(attr, false);
}

public AtFree(final Attr attr, final boolean used) {
this.origin = attr;
this.set = false;
this.set = used;
}

@Override
Expand All @@ -55,7 +59,7 @@ public String toString() {

@Override
public Attr copy(final Phi self) {
return new AtFree(this.origin.copy(self));
return new AtFree(this.origin.copy(self), this.set);
}

@Override
Expand Down

0 comments on commit 4439494

Please sign in to comment.