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_block1.php
blob
ae2f48abe08311da15bba27bea7808aec4cf048c
1
<
?hh
// partial
2
3
async
function
g
():
Awaitable
<
int
> {
4
return
1
;
5
}
6
7
async
function
f
():
Awaitable
<
int
> {
8
$q
=
async
{
9
$a
=
await
g
();
10
return
$a
;
11
};
12
return
await
$q
;
13
}
14
15
function
h
():
Awaitable
<
int
> {
16
return
async
{
17
return
1
;
18
};
19
}
20
21
$a
=
async
{
22
return
1
;
23
};