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
/
unused_awaitable10.php
blob
cbe206d528d6023c52859cd5e40cc60363406312
1
<
?hh
// strict
2
3
async
function
f
():
Awaitable
<
int
> {
4
return
1
;
5
}
6
7
async
function
g
():
Awaitable
<
?
int
> {
8
return null
;
9
}
10
11
function
h
():
void
{
12
$f
=
f
();
13
$g
=
g
();
14
15
$x
=
$f
&&
$g
;
16
if
(
$x
) {
17
}
18
}