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
New inference: improved error message for unresolved type
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
defined
/
if_func_call_2.php
blob
a7ef1f6d84fe0d85e68cb213dcfd5953c660ab1c
1
<
?hh
// strict
2
3
function
foo
(
int
$i
):
void
{}
4
5
function
bar
(
bool
$b
):
int
{
6
if
(
$b
) {
7
foo
(
$y
=
1
);
8
}
else
{
9
foo
(
$x
=
2
);
10
}
11
return
$x
;
12
}