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
Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
idx3_4.php
blob
ef888bbf4b5698dc88a9cb6fbd17ca710110d40c
1
<
?hh
// strict
2
3
function
m
():
Map
<
string
,
int
> {
4
return
Map
{};
5
}
6
7
function
f
():
int
{
8
$m
=
m
();
9
// XXX this ideally would fail, should Indexish be covariant? Task #5343698
10
$x
=
idx
(
$m
,
0
,
0
);
11
return
$x
;
12
}