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
Check for void/noreturn in conditionals
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
strict_call_tany4.php
blob
1e58e03f52cb4dcca6d5de5220bf1aff1c0735d1
1
//// partial.php
2
<
?hh
3
4
async
function
any
() {
5
return new
D
();
6
}
7
8
//// strict.php
9
<
?hh
// strict
10
11
class
C
{
12
public function
cc
():
void
{}
13
}
14
15
class
D
extends
C
{
16
public function
dd
():
void
{}
17
}
18
19
async
function
expload
():
Awaitable
<
void
> {
20
$any
=
any
();
21
$x
=
await
$any
;
22
invariant
(
$x
instanceof
C
,
''
);
23
$x
->
dd
();
24
}