I added a simple test (only testing whether bare "await" dies, no check for the
error message) to S17-promise/basic.t with commit
https://github.com/perl6/roast/commit/305ca31ff7
I'm closing this ticket as 'resolved'.
That is correct. At the moment we cannot catch this elegantly at compile time,
because the candidate with the slurpy takes the no arg case as well. So the
only way to catch the no arg case, is to create a candidate for it that dies.
Which makes it runtime.
Since await, from the grammar point
It does not say "===SORRY!===", is it OK?
On Thu, May 28, 2015 at 7:09 PM, Elizabeth Mattijsen via RT <
perl6-bugs-follo...@perl.org> wrote:
> A bare await now throws an error (with d841d4e14f04c49a19c32)
>
> $ 6 'await'
> Must specify a Promise or Channel to await on
> in block at -e:1
>
> Li
A bare await now throws an error (with d841d4e14f04c49a19c32)
$ 6 'await'
Must specify a Promise or Channel to await on
in block at -e:1
Liz
> On 27 May 2015, at 15:52, Alex Jakimenko (via RT)
> wrote:
>
> # New Ticket Created by Alex Jakimenko
> # Please include the string: [perl #1252
# New Ticket Created by Alex Jakimenko
# Please include the string: [perl #125257]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=125257 >
Somehow I expected that "await" without args would wait for everything, but
it does not