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
Solving inter-procedural constraints in shape-like-dict
[hiphop-php.git]
/
hphp
/
hack
/
test
/
shape_analysis
/
close_constraints
/
call_assign_2.php
blob
23098e022a23b1017dedde914bb8f84e9a6cbdc1
1
<
?hh
2
3
function
f
():
void
{
4
$d
=
dict
[
'a'
=>
42
];
5
g
(
$d
);
6
inspect
(
$d
);
7
}
8
9
function
g
(
dict
<
string
,
mixed
>
$d
):
void
{
10
$d
[
'b'
] =
true
;
11
}