repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Disallow ... without type in function typehints
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
await_as_an_expression
/
await_as_an_expression_pipe_with_async.php
blob
57150a330d1b860adff1fcf1a8c79264642dd9c7
1
<
?hh
// strict
2
3
async
function
gen
<
T
>(
Awaitable
<
T
>
$gen
):
Awaitable
<
T
> {
return
await
$gen
; }
4
5
async
function
foo
():
Awaitable
<
int
> {
6
return
await
(
7
async
{
return
await async
{
return
42
; }; }
8
|
>
gen
(
$$
)
9
);
10
}