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
/
idx3_1.php
blob
fa27e0c69db7e4aef726ade6f360306d6a07b68b
1
<
?hh
// strict
2
3
function
m
():
Map
<
string
,
int
> {
4
return
Map
{};
5
}
6
7
function
f
():
int
{
8
$m
=
m
();
9
$x
=
idx
(
$m
,
'a'
,
0
);
10
return
$x
;
11
}