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
/
inout
/
bad_inout_use_call2.php
blob
cff920bae0c426ed14a3a796d113d40cdc99bca6
1
<
?hh
// strict
2
3
function
multiply
(
inout num
$n
,
num
$m
):
void
{
4
$n
*= (
float
)
$m
;
5
}
6
7
function
test
():
int
{
8
$x
=
21
;
9
multiply
(
inout
$x
,
2
);
10
return
$x
;
11
}