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
/
await_in_expressions3.php
blob
ac4017b7d86265dbc301a2762d6132a00c9b16b2
1
<
?hh
// strict
2
3
async
function
f1
(
Awaitable
<
int
>
$a
):
Awaitable
<
void
> {
4
f2
(
await
$a
);
5
}
6
function
f2
(
int
$x
):
int
{
7
return
$x
;
8
}