Skip to content
Permalink
Browse files

Make Failure.list also throw

As part of R#2650
  • Loading branch information...
lizmat committed Mar 16, 2019
1 parent 23fca8f commit 4ffb4082b04a87cdddca098bad0089d943651942
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/Failure.pm6
@@ -41,6 +41,7 @@ my class Failure is Nil {

# allow Failures to throw when they replace an Iterable
multi method iterator(Failure:D:) { self!throw }
multi method list(Failure:D:) { self!throw }

# Marks the Failure has handled (since we're now fatalizing it) and throws.
method !throw(Failure:D:) {

0 comments on commit 4ffb408

Please sign in to comment.
You can’t perform that action at this time.