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
No error on use of `unsafe_cast`
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
async_block2.php
blob
7c7251b84c74ae97bf6a3c0df02f3640f6f34973
1
<
?hh
// strict
2
3
async
function
g
():
Awaitable
<
int
> {
4
return
1
;
5
}
6
7
async
function
f
():
Awaitable
<
string
> {
8
$q
=
async
{
9
$a
=
await
g
();
10
return
$a
;
11
};
12
return
await
$q
;
13
}