Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Throw the Failure if we try to assign to it
Now that Failure inherits from Nil, the recent Nil.STORE change brought
some spectest breakage to light.  This seems like a good fix for that.
  • Loading branch information
lizmat committed Dec 13, 2015
1 parent 82f273b commit da9bf6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/Failure.pm
Expand Up @@ -83,6 +83,9 @@ my class Failure is Nil {
method FALLBACK(Failure:D: *@) {
self!throw()
}
method STORE(Failure:D: *@) {
self!throw()
}
}

proto sub fail(|) {*};
Expand Down

0 comments on commit da9bf6b

Please sign in to comment.