New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / idx3_1.php
blobfa27e0c69db7e4aef726ade6f360306d6a07b68b
1 <?hh // strict
3 function m(): Map<string, int> {
4 return Map {};
7 function f(): int {
8 $m = m();
9 $x = idx($m, 'a', 0);
10 return $x;