Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git] / hphp / hack / test / typecheck / idx3_4.php
blobef888bbf4b5698dc88a9cb6fbd17ca710110d40c
1 <?hh // strict
3 function m(): Map<string, int> {
4 return Map {};
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;