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
/
instanceof_means_object.php
blob
d6040f8ad9193ccfdadaeb6746a6f7f710743c4d
1
<
?hh
2
3
function
f
(
$x
) {
4
$name
=
g
();
5
if
(
$x
instanceof
$name
) {
6
takes_string
(
$x
);
7
}
8
}
9
10
function
takes_string
(
string
$arg
):
void
{}