AFAIU this looks fine now:
$ perl6 -e 'sub foo { X::IO::Dir.new(path=>"a", os-error=>"b").fail }; my @a :=
foo(); 1'
Type check failed in binding; expected 'Positional' but got 'Failure'
in any bind_error at src/vm/moar/Perl6/Ops.nqp:224
in block at -e:1
The Failure X::IO::Dir is no longer
# New Ticket Created by Brent Laabs
# Please include the string: [perl #118397]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org:443/rt3/Ticket/Display.html?id=118397 >
labster: r: sub foo { X::IO::Dir.new(path=>'a', os-error=>'b').fail }; my
@a = foo